function open_popup(url, w, h, resize, scroll,wname) {
/* place this in onclick or href:  "javascript:open_popup('[url]','[width of window]','[height of window]','[resize option]','[scroll opiton]','[windowname]');"  */
  var properties = "toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0,width="+ w +",height="+ h;
  if((scroll==0)||(scroll==1)){  properties+=",scrollbars="+ scroll; }
  if((resize==0)||(resize==1)){  properties+=",resizable="+ resize; } 	
  wname = (wname == null) ? wname : "popwin";
  child = window.open(url,wname,properties);
  child.focus();
}


function gotoSite(site) {
	if  (site != "") {
		window.parent.opener.location=site;
	}
	window.parent.opener.focus();
	window.close();
}


function submitForm(thisform){

	var errors = 0;
	var answered;
	var parameters = "";

	if (thisform.yoursign.selectedIndex == 0 ||
		thisform.datesign.selectedIndex == 0 || thisform.yoursign.selectedIndex == 1 ||
		thisform.datesign.selectedIndex == 1){
		errors++;
	} else {
		parameters = 'yoursign='+thisform.yoursign.options[thisform.yoursign.selectedIndex].value;
		parameters += '&datesign='+thisform.datesign.options[thisform.datesign.selectedIndex].value;
	}

	if (errors == 0){
		openWin('ps_astro_results.htm?'+parameters);
		return false;
	} else {
		alert(
		'Please select both signs to make an Astro Match!');
		return false;
	}
}

function openWin(url_in) {

  astropop = window.open(url_in,"astropop","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=450,height=350");
  if(navigator.appVersion.substring(0,1) >= 3) {
    astropop.focus();
  }
}

function pollPop(url_in) { 
	pollpopup = window.open(url_in,"pollpopup","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=500,height=520");
	if(navigator.appVersion.substring(0,1) >= 3) {
		pollpopup.focus();
	}
 }

 function tellusPop(url_in) {
	tellpopup = window.open(url_in,"tellpopup","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=450,height=450");
	if(navigator.appVersion.substring(0,1) >= 3) {
		tellpopup.focus();
	}
 }
 
  function lopopup() {
	myWindow = window.open("http://www.promspot.com/ps_logout.htm","","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=370,height=300");
  }

  function privacypopup() {
	myWindow = window.open("http://www.promspot.com/ps_privacy.shtml","","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=550,height=500");
  }

  function aboutuspopup() {
	myWindow = window.open("http://www.promspot.com/ps_aboutus.shtml","","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=550,height=500");
  }

  function helppopup() {
	myWindow = window.open("http://www.promspot.com/ps_help.shtml","","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=550,height=500");
  }

  function copypopup() {
	myWindow = window.open("http://www.promspot.com/ps_copyright.shtml","","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=550,height=500");
  }



//ROLLOVERS

function swap(img,isrc) {
   if (!document.images) return;
   document.images[img].src = isrc;
}