function giveanswer(qn)
{
qn.style.display=qn.style.display == "none" ? "" : "none"
}

function SendForm(theForm)
{
	if (theForm.signup.value == "" || theForm.signup.value.indexOf('@',1)== -1 || theForm.signup.value.indexOf('.',2)==-1){
		alert("Please fill in your email address correctly .");
		theForm.signup.focus();
		return false;
	}
	    window.open("Signin.asp","Sign","top=100,left=100, width=330, height=170, buttons=no,scrollbars=no,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
	    SignForm.target="Sign";
}

function SupportValidate(theForm){
	if (theForm.Yname.value == "" || theForm.Yname.value.length < 2){
		alert("Name is required");
		theForm.Yname.focus();
		return false;
	}
	if (theForm.Cphone.value == "" || theForm.Cphone.value.length < 6){
		alert("Phone is required");
		theForm.Cphone.focus();
		return false;
	}
	if (theForm.Email.value == "" || theForm.Email.value.length < 5 || theForm.Email.value.indexOf('@',1)== -1 || theForm.Email.value.indexOf('.',2)==-1){
		alert("Email Address required");
		theForm.Email.focus();
		return false;
	}
	if (theForm.Country.value == "0"){
		alert("Country required");
		theForm.Country.focus();
		return false;
	}

  window.open("SendSupport.asp","Support","top=100,left=100, width=330, height=170, buttons=no,scrollbars=no,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
  SupportForm.target="Support";
  //SupportForm.reset();
  SupportForm.submit();
  return true;
}

function popup(RegionID,CountryID,StateID)
{
//openWin = window.open("Distributor_List.asp?id="+num,"myWindow","top=200,left=250, width=385, height=400, buttons=no,scrollbars=yes,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no");
openWin = window.open("Distributor_List.asp?rid="+RegionID+"&cid="+CountryID+"&sid="+StateID,"myWindow","top=200,left=250, width=385, height=400, buttons=no,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
openWin.focus();
}