//************** HEADER.ASCX ***************
function OpenRate(){
  var strFeatures;
  var p_strPage;
  p_strPage = "../Shop/RatePage.aspx";
  strFeatures = "status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=650,height=570";
  oWindow = window.open(p_strPage, "RatePage", strFeatures);
  oWindow.focus();
}
		
function checkEmail(){
		if(document.EmailList.eml.value == ""){
			alert("You must provide your email address!");
			return false;
		}
		if (document.EmailList.eml.value.indexOf("@") + "" == "-1" || document.EmailList.eml.value.indexOf(".") + "" == "-1"){
			alert("The email address you entered does not have a valid\n" +
			"syntax.  Please re-enter the address and try again.");
			return false;
		}
}

//checks the kwd search text field for illegal characters
function search_stripHTML()
{
	var _html = /<\S[^><]*>|<|>/g // strip html tags
	for (i=0; i<arguments.length; i++)
		arguments[i].value=arguments[i].value.replace(_html, "");
}	

//checks all the arguments of the function (text field values) for illegal characters
function stripHTML()
{
	var _html = new RegExp("/<\S[^><]*>|<|>|/g") // strip html tags	& characters
	for (i=0; i<arguments.length; i++)
	{
		myString = new String(arguments[i].value);
		//myRE = new RegExp(_html);
		validErrors = myString.match(_html)
			
		// the field is not valid	
		if(validErrors!=null){
			alert("Please do not enter < or > in the fields.");
			return false;
		}
	}
	return true;
}