/*_______________________________________________________________________
Created By	: Prakash Chandra
Created On	: 22-Apr-2009
Modified By   : Prakash Chandra
Modified On   : 22-Apr-2009
Description   : Javascript Function TO Call Specified URL by AJAX
_________________________________________________________________________
*/
function getMobilePhone(opt)
{
   //alert(opt);landline_phone
   var val =document.bookFrm.phone_type.value;
  // var landline_value =document.bookFrm.landline_phone.value;
  var cellphone_value =document.bookFrm.cellphone.value;
   var parameters="opt="+opt+'&value='+val+'&cellphone_value='+cellphone_value;  // URL 


    callAjax( "statediv", "swap.php", {
	params:"pagenum="+1+"&"+parameters+"&rand="+Math.random(),
	meth:"post",
	async:true,
	startfunc:"",
	endfunc:"",
	errorfunc:"" }
	);



  /* var req;
     /* Create XML Object According To Browser */ 
/*
   try{
	   req=new XMLHttpRequest();
    }
    catch(e){
        try{
            req=new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e){
            alert('AJAX is not supported by your browser!');
            return false;
        }
	}
    /* Create XML Object According To Browser */ 

  /* if (req)
   {
     req.onreadystatechange = function()
     {
     if (req.readyState == 4) //Complete 
     {
	   // only if "OK"
	   if (req.status == 200)
         {
		  //document.getElementById("loading").style.display="none"; // De-Active Loading Task is Done.
		  document.getElementById('statediv').innerHTML=req.responseText; // Replace Content into statediv
	     } 
		else
		{
   		alert("There was a problem while using XMLHTTP:\n" + req.statusText);
	     }
      }
	  else
		 {
		  //document.getElementById("loading").style.display="block"; // Active Loading is prgress...
		  
		 }

     }
   req.open("GET", strURL, true); 
   req.send(null); // Send Request By GET method
   }*/



}
