 
 


 
  var xmlhttp;

function checkCoupon(couponcode)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Sorry, Browser does not support HTTP Request");
  return;
  }
   
var url="ajax.php";
  
 var handle = document.getElementById('couponcode');
 
 if(handle.value.length > 0) {

var fullurl=url + '?cmd=checkcoupon&couponcode=' + handle.value+"&ajax=1";
xmlhttp.onreadystatechange=stateChanged_Coupon;
xmlhttp.open("GET",fullurl,true);
xmlhttp.send(null);
document.getElementById('coupon_result').innerHTML = '';
 }else{
        document.getElementById('coupon_result').innerHTML = 'Please enter a coupon code';
    }
}

function stateChanged_Coupon()
{ 
if (xmlhttp.readyState==4)
{
	 
 
//document.getElementById("coupon_result").innerHTML=xmlhttp.responseText;
var invalid=xmlhttp.responseText;
if(invalid=='invalidcoupon')
 {
	 document.getElementById('coupon_result').innerHTML = 'Please enter a Valid coupon code'; 
 }
else
 { 
	document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
 document.getElementById('txt').style.display='none';
  }
 }

}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}
 





   function toggle_username(userid) { 
    if (window.XMLHttpRequest) {
        http = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        http = new ActiveXObject("Microsoft.XMLHTTP");
    }
 var handle = document.getElementById('username');

    var url = 'ajax.php';
    if(handle.value.length > 0) {

        var fullurl = url + '?cmd=register&username=' + encodeURIComponent(handle.value);
 
        http.open("GET", fullurl, true);
        http.send(null);
		
        http.onreadystatechange = statechange_username;
    }else{
        document.getElementById('username_exists').innerHTML = '';
    }
}

function statechange_username() {
    if (http.readyState == 4) {
        var xmlObj = http.responseXML;
		 
		if(xmlObj.getElementsByTagName('result').item(0).firstChild.data!='none')
		{
        var html = xmlObj.getElementsByTagName('result').item(0).firstChild.data;
		       
				document.getElementById('username_exists').innerHTML = html;
				
		}else{
		 document.getElementById('username_exists').style.display='none';
		}


    }

}
function toggle_emailid(emailid) {
    if (window.XMLHttpRequest) {
        http = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        http = new ActiveXObject("Microsoft.XMLHTTP");
    }
 var handle = document.getElementById('email');

    var url = 'ajax.php';
    if(handle.value.length > 0) {

          var fullurl = url + '?cmd=register_email&email=' + handle.value;
 
        http.open("GET", fullurl, true);
        http.send(null);
		
        http.onreadystatechange = statechange_email;
    }else{
        document.getElementById('email_exists').innerHTML = '';
    }
}

function statechange_email() {
    if (http.readyState == 4) { 
        var xmlObj = http.responseXML;
		
		if(xmlObj.getElementsByTagName('results_email').item(0).firstChild.data!='none')
		{
        var html = xmlObj.getElementsByTagName('results_email').item(0).firstChild.data;
		        document.getElementById('email_exists').innerHTML = html;

}else{
		 document.getElementById('email_exists').style.display='none';
		}

    }

}

function BrowserCheck() {
var b = navigator.appName;
if (b == "Netscape") this.b = "NS";
else if (b == "Microsoft Internet Explorer") this.b = "IE";
else this.b = b;
this.v = parseInt(navigator.appVersion);
this.NS = (this.b == "NS" && this.v>=4);
this.NS4 = (this.b == "NS" && this.v == 4);
this.NS5 = (this.b == "NS" && this.v == 5);
this.IE = (this.b == "IE" && this.v>=4);
this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);
this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);
if (this.IE5 || this.NS5) this.VER5 = true;
if (this.IE4 || this.NS4) this.VER4 = true;
this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
this.min = (this.NS||this.IE);
}function hideAlert(x){


alertBox.visibility = "hidden";


document.ilform[x].focus();
return false;

 
  
}



is = new BrowserCheck();
alertBox = (is.VER5) ? document.getElementById("alertLayer").style
: (is.NS) ? document.layers["alertLayer"]
: document.all["alertLayer"].style;


function BrowserCheck() {
var b = navigator.appName;
if (b == "Netscape") this.b = "NS";
else if (b == "Microsoft Internet Explorer") this.b = "IE";
else this.b = b;
this.v = parseInt(navigator.appVersion);
this.NS = (this.b == "NS" && this.v>=4);
this.NS4 = (this.b == "NS" && this.v == 4);
this.NS5 = (this.b == "NS" && this.v == 5);
this.IE = (this.b == "IE" && this.v>=4);
this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);
this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);
if (this.IE5 || this.NS5) this.VER5 = true;
if (this.IE4 || this.NS4) this.VER4 = true;
this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
this.min = (this.NS||this.IE);
}
is = new BrowserCheck();
alertBox = (is.VER5) ? document.getElementById("alertLayer").style
: (is.NS) ? document.layers["alertLayer"]
: document.all["alertLayer"].style;

function hideAlert(x){


alertBox.visibility = "hidden";


document.ilform[x].focus();
return false;

 
  
}

function makeAlert(aTitle,aMessage,msg){

document.all.alertLayer.innerHTML = "<table border=0 width=250 height=90%>" +
"<tr height=5><td colspan=4 > </td></tr>" +
"<tr height=5><td colspan=4 class=alertTitle>" + " " + aTitle + "</td></tr>" +
"<tr height=5><td width=5></td></tr>" +
"<tr><td width=5></td><td width=20 align=left> </td><td align=center class=alertMessage>" + aMessage + "<BR></td><td width=5></td></tr>" + 
"<tr height=5><td width=5></td></tr>" +
"<tr><td width=5></td><td colspan=2 align=center><input type=button value='OK' onClick=hideAlert('" + msg + "') class=okButton><BR></td><td width=5></td></tr>" +
"<tr height=5><td width=5></td></tr></table>";
thisText = aMessage.length;
if (aTitle.length > aMessage.length){ thisText = aTitle.length; }

aWidth = (thisText * 5) + 80;
aHeight = 100;
if (aWidth < 150){ aWidth = 200; }
if (aWidth > 350){ aWidth = 350; }
if (thisText > 60){ aHeight = 110; }
if (thisText > 120){ aHeight = 130; }
if (thisText > 180){ aHeight = 150; }
if (thisText > 240){ aHeight = 170; }
if (thisText > 300){ aHeight = 190; }
if (thisText > 360){ aHeight = 210; }
if (thisText > 420){ aHeight = 230; }
if (thisText > 490){ aHeight = 250; }
if (thisText > 550){ aHeight = 270; }
if (thisText > 610){ aHeight = 290; }

alertBox.width = aWidth;
alertBox.height = aHeight;
alertBox.left = (document.body.clientWidth - aWidth)/2;
alertBox.top = (document.body.clientHeight - aHeight)/2;

alertBox.visibility = "visible";
}


function validate_message()
{	


 var msg='';
 var error='';
 var focus_var='';


  if (document.ilform.roleid.value=="0")
 {
	  msg =msg+'At the top of the Page, Please select your role from the drop down list'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='roleid';
    }
    }

if (document.ilform.username.value=="")
  {
    msg =msg+'Please enter a value for the username'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='username';
    }
    
  }
  var iChars = "!@#$%^&*()+=-[]\\\';,./`{}|\":<>?";
 
   for (var i = 0; i < document.ilform.username.value.length; i++) {
  if (iChars.indexOf(document.ilform.username.value.charAt(i)) != -1) {
  msg =msg+'Invalid username. Please remove special characters'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='username';
    } 
  
  }
   }   var temp = document.getElementById("username_exists");
var save_temp = temp.innerHTML;
		if(save_temp=='Username already exists')
	{
			 msg =msg+'Sorry, username already exists in our database'+'\n';
    error=true;
 if(focus_var==''){
     focus_var='username';
    } 
	}
	   

    

     if (document.ilform.email.value == "")
 {
  msg =msg+'Please enter the email'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='email';
    }
 }else{ 
 var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
 
 if(!document.ilform.email.value.match(emailExp))
 {
  msg =msg+'Please enter the valid email id'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='email';
    }
    
     }
 }


  var temp = document.getElementById("email_exists");
var save_temp = temp.innerHTML;
		if(save_temp=='Email already exists')
	{

			 msg =msg+'Sorry, this email already exists in our database'+'\n';
    error=true;
 if(focus_var==''){
     focus_var='email';
    } 


	}




  if (document.ilform.password.value=="")
  {
    msg =msg+'Please enter the password'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password';
    }
    
  } else if(document.ilform.password.value.length<=6)
  {
   msg =msg+'Please enter a password containing more than 6 characters'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password';
    }
  }
  
   if (document.ilform.password2.value=="")
 {
   msg =msg+'Please enter a value for confirm password'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password2';
    }
  

  }
 if (document.ilform.password.value.length>6&&document.ilform.password.value!=""&&document.ilform.password2.value!="")
 {
  if(document.ilform.password.value!=document.ilform.password2.value)
  {
    msg =msg+'Password mismatch'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password2';
    }
  }
 }
if (document.ilform.first_name.value=="")
 {


	 msg =msg+'Please enter a value for the first Name'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='first_name';
    }


  }
  if (document.ilform.last_name.value=="")
 {

	   msg =msg+'Please enter a value for the last Name'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='last_name';
    }
 

  }
 

  if (document.ilform.secretquestion.value=="")
 {

	    msg =msg+'Please enter a value for the security question'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='secretquestion';
    }
 
 

  }


 var regex = /^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\s]*$/ ;

 if(!regex.test(document.ilform.secretquestion.value))
 
 {

	    msg =msg+'Please do not use any special characters in secret question.'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='secretquestion';
    }
 
 

  }




  if (document.ilform.secretanswer.value=="")
 {

	     msg =msg+'Please enter a value for "Answer to Security Question"'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='secretanswer';
    }
 


  }


 if(!regex.test(document.ilform.secretanswer.value))
 
 {

	    msg =msg+'Please do not use special characters in "Answer to Security Question".'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='secretanswer';
    }
 
 

  }
  if (document.ilform.address.value=="")
 {

	     msg =msg+'Please enter a value for the address'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='address';
    }


  }




   if (document.ilform.city.value=="")
 {

	       msg =msg+'Please enter a value for the city'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='city';
    }

  }

  if (document.ilform.zipcode.value=="")
 {
	         msg =msg+'Please enter a value for the zip Code'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='zipcode';
    }


  }

  
	 if (isNaN(document.ilform.zipcode.value))
  {

		   msg =msg+'Please enter numbers only for zip code'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='zipcode';
    }
 
  }

 



  if (document.ilform.mobilenum.value=="")
 {
	  	   msg =msg+'Please enter a value for the mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }
  }
	

	 if (isNaN(document.ilform.mobilenum.value))
  {

		   	   msg =msg+'Please enter numbers only for mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }

 
  }


 
   else if (document.ilform.mobilenum.value.length>10 )
 {
		    msg =msg+'Please enter ten digits for digit mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }

  }
      else if (document.ilform.mobilenum.value.length<1 )
 {
		

  }
       else if (document.ilform.mobilenum.value.length<10 )
 {
		    msg =msg+'Please enter ten digits for mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }

  }
    

var aURL = document.ilform.mobilenum.value.charAt(0); 
	

 if (aURL==1)
 {
	     msg =msg+'Please enter a valid mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }


  }





 if (document.ilform.phone2.value=="")
 {
	     msg =msg+'Please enter a value for the office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }


  }
	

	 if (isNaN(document.ilform.phone2.value))
  {

		      msg =msg+'Please enter numbers only for office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }

  }
  
else if (document.ilform.phone2.value.length>10)
 {

	      msg =msg+'Please enter the ten digit office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }

  }
       else if (document.ilform.phone2.value.length<1 )
 {
		

  }
   
    else if (document.ilform.phone2.value.length<10)
 {

	      msg =msg+'Please enter the ten digit office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }



  } 


var aURL = document.ilform.phone2.value.charAt(0); 
	

 if (aURL==1)
 {
	     msg =msg+'Please enter a valid office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }


  }




 var ischecked = document.ilform.agreecheck.checked;
	if (ischecked == 0) 
	{

		 msg =msg+'Please select the check box to agree to the terms and conditions of Hire-A-Contractor-Now.com'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='agreecheck';
    }
	
	}

   


 
   




 
 if(error==true){
  alert(msg)

  document.ilform[focus_var].focus();
  return false;
 
 }
}




function validate_message111()
{	


 var msg='';
 var error='';
 var focus_var='';



  if (document.ilform.username.value=="")
  {
    msg =msg+'Please enter a value for the username'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='username';
    }
    
  }
  var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?";
 
   for (var i = 0; i < document.ilform.username.value.length; i++) {
  if (iChars.indexOf(document.ilform.username.value.charAt(i)) != -1) {
  msg =msg+'Special characters are not allowed in username. \n Please remove them and try again'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='username';
    } 
  
  }
   }   var temp = document.getElementById("username_exists");
var save_temp = temp.innerHTML;
		if(save_temp=='Username already exists')
	{
			 msg =msg+'Sorry, the username you entered already exists'+'\n';
    error=true;
 if(focus_var==''){
     focus_var='username';
    } 
	}
	   

    

     if (document.ilform.email.value == "")
 {
  msg =msg+'Please enter a value for the email address'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='email';
    }
 }else{ 
 var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
 
 if(!document.ilform.email.value.match(emailExp))
 {
  msg =msg+'Please enter a valid email address'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='email';
    }
    
     }
 }


  var temp = document.getElementById("email_exists");
var save_temp = temp.innerHTML;
		if(save_temp=='Email already exists')
	{

			 msg =msg+'Sorry, this email already exists in our database'+'\n';
    error=true;
 if(focus_var==''){
     focus_var='email';
    } 


	}




  if (document.ilform.password.value=="")
  {
    msg =msg+'Please enter a value for the password'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password';
    }
    
  } else if(document.ilform.password.value.length<=6)
  {
   msg =msg+'Please enter a password containing more than 6 characters'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password';
    }
  }
  
   if (document.ilform.password2.value=="")
 {
   msg =msg+'Please enter a value for the confirm password'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password2';
    }
  

  }
 if (document.ilform.password.value.length>6&&document.ilform.password.value!=""&&document.ilform.password2.value!="")
 {
  if(document.ilform.password.value!=document.ilform.password2.value)
  {
    msg =msg+'Sorry, the passwords entered do not match'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='password2';
    }
  }
 }
if (document.ilform.first_name.value=="")
 {


	 msg =msg+'Please enter a value for the first Name'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='first_name';
    }


  }
  if (document.ilform.last_name.value=="")
 {

	   msg =msg+'Please enter a value for the last Name'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='last_name';
    }
 

  }
 

  if (document.ilform.secretquestion.value=="")
 {

	    msg =msg+'Please enter a value for the security question'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='secretquestion';
    }
 
 

  }
  if (document.ilform.secretanswer.value=="")
 {

	     msg =msg+'Please enter a value for Answer to security question'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='secretanswer';
    }
 


  }

  if (document.ilform.address.value=="")
 {

	     msg =msg+'Please enter a value for the address'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='address';
    }


  }




   if (document.ilform.city.value=="")
 {

	       msg =msg+'Please enter a value for the city'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='city';
    }

  }

  if (document.ilform.zipcode.value=="")
 {
	         msg =msg+'Please enter a value for the zip Code'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='zipcode';
    }


  }

  
	 if (isNaN(document.ilform.zipcode.value))
  {

		   msg =msg+'Please enter numbers only for zip code'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='zipcode';
    }
 
  }

 



  if (document.ilform.mobilenum.value=="")
 {
	  	   msg =msg+'Please enter a value for the mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }
  }
	

	 if (isNaN(document.ilform.mobilenum.value))
  {

		   	   msg =msg+'Please enter numbers only for mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }

 
  }


 
     else if (document.ilform.mobilenum.value.length>10 )
 {
		    msg =msg+'Please enter the ten digit mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }

  }
      else if (document.ilform.mobilenum.value.length<1 )
 {
		

  }
       else if (document.ilform.mobilenum.value.length<10 )
 {
		    msg =msg+'Please enter the ten digit mobile number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='mobilenum';
    }

  }
    





 if (document.ilform.phone2.value=="")
 {
	     msg =msg+'Please enter a value for the office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }


  }
	

	 if (isNaN(document.ilform.phone2.value))
  {

		      msg =msg+'Please enter numbers only for office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }

  }
   else if (document.ilform.phone2.value.length>10)
 {

	      msg =msg+'Please enter the ten digit office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }

  }
   
    else if (document.ilform.phone2.value.length<10)
 {

	      msg =msg+'Please enter the ten digit office number'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='phone2';
    }

  }
 var ischecked = document.ilform.agreecheck.checked;
	if (ischecked == 0) 
	{

		 msg =msg+'Please select the check box to agree to the terms and conditions of Hire-a-contractor-now.com'+'\n';
    error=true;
    if(focus_var==''){
     focus_var='agreecheck';
    }
	
	}

   


 
   




 
 if(error==true){
  alert(msg)

  document.ilform[focus_var].focus();
  return false;
 
 }
}

 
var IB=new Object;
var posX=0;posY=0;
var xOffset=10;yOffset=10;
function ShowHelpbox(texte) {
  contenu="<TABLE border=0 cellspacing=0 cellpadding="+IB.NbPixel+"><TR bgcolor='"+IB.ColContour+"'><TD><TABLE border=0 cellpadding=2 cellspacing=0 bgcolor='white'><TR><TD><FONT size='-1' face='arial' color='"+IB.ColTexte+"'>"+texte+"</FONT></TD></TR></TABLE></TD></TR></TABLE>&nbsp;";
  var finalPosX=posX-xOffset;
  if (finalPosX<0) finalPosX=0;
  if (document.layers) {
    document.layers["bulle"].document.write(contenu);
    document.layers["bulle"].document.close();
    document.layers["bulle"].top=posY+yOffset;
    document.layers["bulle"].left=finalPosX;
    document.layers["bulle"].visibility="show";}
  if (document.all) {
    bulle.innerHTML=contenu;
    document.all["bulle"].style.top=posY+yOffset;
    document.all["bulle"].style.left=finalPosX;
    document.all["bulle"].style.visibility="visible";
  }
  
  else if (document.getElementById) {
    document.getElementById("bulle").innerHTML=contenu;
    document.getElementById("bulle").style.top=posY+yOffset;
    document.getElementById("bulle").style.left=finalPosX;
    document.getElementById("bulle").style.visibility="visible";
  }
}
function getMousePos(e) {
  if (document.all) {
  posX=event.x+document.body.scrollLeft; 
  posY=event.y+document.body.scrollTop;
  }
  else {
  posX=e.pageX; 
  posY=e.pageY; 
  }
}
function HideHelpBox() {
	if (document.layers) {document.layers["bulle"].visibility="hide";}
	if (document.all) {document.all["bulle"].style.visibility="hidden";}
	else if (document.getElementById){document.getElementById("bulle").style.visibility="hidden";}
}

function InitHelpBox(ColTexte,ColFond,ColContour,NbPixel) {
	IB.ColTexte=ColTexte;IB.ColFond=ColFond;IB.ColContour=ColContour;IB.NbPixel=NbPixel;
	if (document.layers) {
		window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=getMousePos;
		document.write("<LAYER name='bulle' top=0 left=0 visibility='hide'></LAYER>");
	}
	if (document.all) {
		document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
		document.onmousemove=getMousePos;
	}
	
	else if (document.getElementById) {
	        document.onmousemove=getMousePos;
	        document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
	}

}
 
 function functioncall(){
		
	                                document.form1.submit();
					
	                                     }	

