 function mOvr(src,clrOver) {if (!src.contains(event.fromElement)){ 	src.style.cursor = 'hand'; 	src.bgColor = clrOver; 	} } function mOut(src,clrIn){  if (!src.contains(event.toElement)){   src.style.cursor = 'default';   src.bgColor = clrIn;   }  } function mClk(src) {form1.op.value=src;  if(src=='0') {self.location.href="home.php?li=h_1";}  else if(src=='1'){ self.location.href="services.php?li=h_2";}  else if(src=='2'){ self.location.href="products.php?li=h_3";}    else if(src=='3'){ self.location.href="quotation.php?li=h_4";}    else if(src=='4'){ self.location.href="orderinfo.php?li=h_5";}  else if(src=='5'){ self.location.href="contactUs.php?li=h_6";}}  function  CallNewWindow(thewindow, thename)	{var web = thewindow;	window.location.replace(web);	}function trim(sString)	{		sTrimmedString = "";		if (sString != "")		{			var iStart = 0;			var iEnd = sString.length - 1;			var sWhitespace = " \t\f\n\r\v";			while (sWhitespace.indexOf(sString.charAt(iStart)) != -1)			{				iStart++;				if (iStart > iEnd)					break;			}			// If the string not just whitespace			if (iStart <= iEnd)			{				while (sWhitespace.indexOf(sString.charAt(iEnd)) != -1)					iEnd--;				sTrimmedString = sString.substring(iStart,++iEnd);			}		}		return sTrimmedString;	}function  check_quote_info(){		//alert(document.quote_form.Name.value);	//alert(document.quote_form.Name.value.length);	//var name = trim(document.quote_form.Name.value);		if (trim(document.quote_form.Name.value).length<1)	 {					alert('Contact Name can not be empty,please enter Contact Name');		return false;	 }	 if (trim(document.quote_form.Company.value).length<1)	 {					alert('Company Name can not be empty,please enter Company Name');		return false;	 }	 if (trim(document.quote_form.Phone.value).length<1)	 {					alert('Phone Number can not be empty,please enter Phone Number');		return false;	 }	 if (trim(document.quote_form.EMail.value).length<1)	 {					alert('E-Mail can not be empty,please enter E-Mail');		return false;	 }	 if (trim(document.quote_form.Compound.value).length<1)	 {					alert('Compound can not be empty,please enter Compound');		return false;	 }	 if (trim(document.quote_form.Quantity.value).length<1)	 {					alert('Quantity can not be empty,please enter Quantity');		return false;	 }		return true;}