function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
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);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 
/*

function showForm(){
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	}	 
	var url2="form_field.php?rand="+Math.random();
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url2,true);
	xmlHttp.send(null);


}
function stateChanged(){
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
		window.location="#top";
		//alert(xmlHttp.responseText)
		overlib(xmlHttp.responseText,FGCOLOR, '#ffffff', BGCOLOR, '#467FB9', BORDER, 0, TEXTFONT, 'arial', TEXTSIZE, 2,TEXTCOLOR, '#4a4a4a', WIDTH, 400, HEIGHT, 70);
	}else{
	window.location="#top";
		overlib('<table width=397 height=195 border=0 cellpadding=0 cellspacing=0 background=images/loading1.gif><tr><td colspan=4></td></tr><tr><td colspan=3></td><td width=88></td></tr> <tr> <td width=129></td><td width=38><table width=100% border=0 cellspacing=0 cellpadding=0><tr> <td height=50 align=center valign=top><img src=loading.gif width=32 height=32></td></tr></table></td> <td colspan=2><table width=100% border=0 cellspacing=0 cellpadding=0><tr> <td height=50 valign=top class=verdana11black><font color=white size=+1>Please wait loading...</font></td></tr> </table></td></tr></table>',FGCOLOR, '#ffffff', BGCOLOR, '#467FB9', BORDER, 0, TEXTFONT, 'arial', TEXTSIZE, 2,TEXTCOLOR, '#4a4a4a', WIDTH, 400, HEIGHT, 70);
			return true;
	}

}

function GetXmlHttpObject(){ 
	var objXMLHttp=null
	if (window.XMLHttpRequest){
	objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject){
	objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}

function formVal(){

var emailStr=document.getElementById("email").value;
		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid

	if(!document.getElementById("name").value){  
		alert("Please enter the name");
		document.getElementById("name").focus(); 
		return false;

	}else if(!document.getElementById("phone").value){
		alert("Please enter the phone no.");
		document.getElementById("phone").focus();
		return false;
	}else if(!document.getElementById("email").value){
			alert('Please enter your email');
			document.getElementById("email").focus();
			return false;	
	}else if (!(!reg1.test(emailStr) && reg2.test(emailStr))){
			alert("Please check your email address.");
			document.getElementById("email").focus();
			return false; 
	}else if(!document.getElementById("message").value){
			alert('Please enter the Message');
			document.getElementById("message").focus();
			return false;	
	}else if(!document.getElementById("verify").value){
		alert('Please enter the verification code given below');
		document.getElementById("verify").focus();
		return false;
	}else if(document.getElementById("verify").value!=document.getElementById("vp").value){
		alert('Verification code does not match');
		document.getElementById("verify").value='';
		document.getElementById("verify").focus();
		return false;
	} 

xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	}	 
	var url2="postform_enquiry.php?rand="+Math.random();
	url2=url2+"&name="+document.getElementById("name").value;
	url2=url2+"&phone="+document.getElementById("phone").value;
	url2=url2+"&email="+document.getElementById("email").value;
	url2=url2+"&message="+document.getElementById("message").value;
	url2=url2+"&verify="+document.getElementById("verify").value;
	xmlHttp.onreadystatechange=stateChangedMess
	xmlHttp.open("GET",url2,true);
	xmlHttp.send(null);
return false;
}

function stateChangedMess(){
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
		overlib('<table width=397 height=195 border=0 cellpadding=0 cellspacing=0 background=images/success.gif> <tr> <td colspan=2></td> </tr><tr> <td width=349></td><td width=48></td></tr><tr> <td rowspan=6></td><td></td></tr> <tr> <td></td></tr><tr> <td></td> </tr> <tr> <td></td></tr><tr> <td></td></tr> <tr><td valign=top><table width=100% border=0 cellspacing=0 cellpadding=0><tr> <td height=50 align=center valign="bottom"><a href=#;  onClick="hideIt();"><img src=images/cross.gif width=31 height=31 border=0></a></td></tr></table></td> </tr></table>',FGCOLOR, '#ffffff', BGCOLOR, '#467FB9', BORDER, 0, TEXTFONT, 'arial', TEXTSIZE, 2,TEXTCOLOR, '#4a4a4a', WIDTH, 400, HEIGHT, 70);
			return true;
	}else{
window.location="#top";
		overlib('<table width=397 height=195 border=0 cellpadding=0 cellspacing=0 background=images/loading1.gif><tr><td colspan=4></td></tr><tr><td colspan=3></td><td width=88></td></tr> <tr> <td width=129></td><td width=38><table width=100% border=0 cellspacing=0 cellpadding=0><tr> <td height=50 align=center valign=top><img src=loading.gif width=32 height=32></td></tr></table></td> <td colspan=2><table width=100% border=0 cellspacing=0 cellpadding=0><tr> <td height=50 valign=top class=verdana11black><font color=white size=+1>Please wait...sending your request...</font></td></tr> </table></td></tr></table>',FGCOLOR, '#ffffff', BGCOLOR, '#467FB9', BORDER, 0, TEXTFONT, 'arial', TEXTSIZE, 2,TEXTCOLOR, '#4a4a4a', WIDTH, 400, HEIGHT, 70);
			return true;
	}

}

*/