// Pop-up Windows
//==============================================

	function ashayWin( windowURL, windowName, windowFeatures ) { 
		return window.open( windowURL, windowName, windowFeatures ) ; 
	} 
//==============================================
// End Of Pop-up Windows


// Close Pop-up Windows
//==============================================
function fetch(url) {
		onClick=self.close();
}
//==============================================
// End Close Pop-up Windows



// Reload layers for NN
//==============================================
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// End Reload layers for NN
//==============================================

function Validator(theForm){
	
	charity = 1
	count=0
	if(theForm.table1.value!="" && theForm.table1.value!="0") {charity=0;count++;}
	if(theForm.table2.value!="" && theForm.table2.value!="0") {charity=0;count++;}
	if(theForm.table3.value!="" && theForm.table3.value!="0") {charity=0;count++;}
	if(theForm.table4.value!="" && theForm.table4.value!="0") {charity=0;count++;}
	if(theForm.table5.value!="" && theForm.table5.value!="0") {charity=0;count++;}
	if(theForm.tickets1.value!="" && theForm.tickets1.value!="0") {charity=0;count++;}
	if(theForm.tickets2.value!="" && theForm.tickets2.value!="0") {charity=0;count++;}
	if(theForm.contribution.value!="" && theForm.contribution.value!="0") {charity=0;count++;}
	//alert(charity);
	if(charity==1)
		{alert("Please select one of the table or ticket");
		theForm.table1.focus();
		return(false);}
	else{
	if(count>1)
		{alert("Please only one type of table or ticket");
		return(false);}
	    }
	selected = 0
	for(i=0;i<=3;i++)
		{
		//alert(theForm.PaymentMethod[i].checked)
		if(theForm.PaymentMethod[i].checked)
			selected=1;	
		}
		
	if(selected==0){
		alert("Please Select Payment Method")
		theForm.PaymentMethod[0].focus();
		return(false)
		}
		
	if(theForm.CCNum.value==""){
		alert("Please Enter Credit Card Number");
		theForm.CCNum.focus();
		return(false);
		}
	if(theForm.ExpDate.value==""){
		alert("Plese Select Credit Card Expiration Date");
		theForm.ExpDate.focus();
		return(false);
		}
	if(theForm.NameOnCard.value==""){
		alert("Please Select Name on Card");
		theForm.NameOnCard.focus();
		return(false);
		}
	if(theForm.Name.value==""){
		alert("Please Select Name");
		theForm.Name.focus();
		return(false);
		}
	//if(theForm.Title.value==""){
	//	alert("Please Select Title");
	//	theForm.Title.focus();
	//	return(false);
	//	}
	//if(theForm.Company.value==""){
	//	alert("Please Select Company");
	//	theForm.Company.focus();
	//	return(false);
	//	}
	if(theForm.Address1.value==""){
		alert("Please Select Address1");
		theForm.Address1.focus();
		return(false);
		}
	if(theForm.City.value==""){
		alert("Please Select City");
		theForm.City.focus();
		return(false);
		}
	
	//if(theForm.selState.selectedIndex==0){
	//	alert("Please Select State");
	//	theForm.selState.focus();
	//	return(false);
	//	}
	if(theForm.selCountry.selectedIndex==0||theForm.selCountry.selectedIndex==7){
		alert("Please Select Country");
		theForm.selCountry.focus();
		return(false);
		}
	if(theForm.Zip.value==""){
		alert("Please Enter Your Zip Code");
		theForm.Zip.focus();
		return(false);
		}
	if(theForm.Telephone.value==""){
		alert("Please Enter Your Telephone Number");
		theForm.Telephone.focus();
		return(false);
		}
	if(theForm.Email.value=="" ){
		alert("Please Enter Your Email Id");
		theForm.Email.focus();
		return(false);
		}
	return(true);	
	}
