// JavaScript Document

function newWindow(mypage,myname,w,h,features) {
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}


function goto(form) {
	
	var index=frm_quicklinks.selectedPage.selectedIndex;
	
	if (frm_quicklinks.selectedPage.options[index].value != "0") {
		location=frm_quicklinks.selectedPage.options[index].value;
		}
}

/* not currently used */
/*
function WinOpen() {
  var url=document.redirect.selection.value;
  document.location.href=url;
}
*/


/* used in quoting */
function gotoURL() {
  var Current 			=  document.frmQuoting.redirectURL.selectedIndex;
  window.location.href 	=  document.frmQuoting.redirectURL.options[Current].value;
  return false;
}