function soopaPopSetup() {
	var a;
	for (var i = 0; (a = document.links[i]); i++) {
		if (a.target && a.target.indexOf("_soopaPop") == 0) {
			a.onclick = soopaPop;
		}
	}
}

function soopaPop() {
	var a = this.target.split(":");
	var sFeatures = a[1];
	window.open(this.href, a.length > 2 ? a[2] : String((new Date()).getTime()), sFeatures);
	return false;
	alert("hi")
}

function showCal(eile){
   if (document.getElementById) {
      with (document.getElementById('date' + eile).style){
      display = 'inline';
       
      }
   }
}

function hideCal(eile){
   if (document.getElementById) {
      document.getElementById('date' + eile).style.display = 'none';
   }
}
function updateDateControl(controlName, dateValue) {
    if (document.getElementById) {
        alert("COntrolName = " + controlName + "") ;
        alert("Date Value = " + dateValue + "") ;
  eval('document.form1.' + controlName + 'day.value = ' + dayValue);
} 
} 
function sendVal(control, dayValue,monthValue,yearValue){
    if (document.getElementById) {
      eval('document.form1.'+ control +'day.value =' + dayValue) ;
      eval('document.form1.'+ control +'month.value =' + monthValue) ;
      eval('document.form1.'+ control +'year.value =' + yearValue) ;

      if (control == "arrive") { 
         hideCal(1);
      }
      else {
         hideCal(2);
      }
        }
   }        
 
function JumpMe(dropdown) {
var tempURL = dropdown.options[dropdown.selectedIndex].value;
	if(tempURL!="") {
		document.location.href = tempURL;
	}
}



