//Bicsa Scripts
function popUp(url) {
		sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450'); 
		self.name = "mainWin"; 
		}

	function FValidateControl(control) {
		if(control.value==""){
			return false
		}
	return true
	}

	function FSubmitValidation(form) {
		if (!FValidateControl(form.UserId)){
			alert("Please specify your Username")
			return false
		}
		if (!FValidateControl(form.UserPass)){
			alert("Please specify your Password")
			return false
		}
	}
	
//Check the form before submitting Search
function CheckForm () {

	//Check for a word to search
	if (document.frmSiteSearch.search.value==""){
		alert("Please enter the product or service to search");
		document.frmSiteSearch.search.focus();
		return false;
	}
	
	return true
}

//Check the form before submitting Contact Forms
function CheckContactForm () {

	if (document.form5.nombre.value == ""){
   alert("Please specify your Name")
    document.form5.nombre.focus();
   return false;
  }  
  
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form5.email.value)){
	} else {
    alert("Please specify a valid E-mail.")
    document.form5.email.focus();
    return (false); }
	
 if (document.form5.asunto.value == ""){
   alert("Please specify the Subject.")
    document.form5.asunto.focus();
   return false;
  }
	
}

// end hiding from old browsers -->
