// JavaScript Document
function astro()
{
	var val = document.frmAstro.astrooptn.value;	
	alert(val);
	if(val==1)
	{
		alert(val);
	//	location.href = "http://www.findyourfate.com/astrology/Aries.htm";
//		document.window.location = "recruiters/home_r.php";
//		window.location = "index.php";
	//	alert(val);
	}
}
function GetDistrict() {
        var catagory1 = document.getElementById('state').value;
		var matchList = document.getElementById("city");
		matchList.options.length = 1; 
		var catagory=String(catagory1);
		//alert(catagory1);
	//	alert(matchList.innerHTML);		
	    agent.call('','GetDistrict','GetDistrict_Callback',catagory);
	//	alert(catagory1);
			
    }
	
//function gets skill details as object. skill details are inserted into skill list.
    function GetDistrict_Callback(obj) {
		var matchList = document.getElementById("district");
		var catagory1 = document.getElementById('state').value;
		matchList.options.length = 1; 
		//if ((obj[0][0]==null))
				//alert(obj[0][0]);
		//alert(obj.length);
		if (catagory1 !='')
		 {
				if(obj.length==1 && obj[0][0]== null)
					return;	
				for (var i = 0; i <obj.length; i++)
					{
						var optn = document.createElement("OPTION");
						optn.text = obj[i][0];
						optn.value = obj[i][1];
						matchList.options.add(optn);
						
					}
		}
 	 }
	 
	function GetCity() {
        var catagory1 = document.getElementById('district').value;
		var catagory=String(catagory1);
		//alert(catagory);		
	       agent.call('','GetCity','GetCity_Callback',catagory);
			
    }
	
//function gets skill details as object. skill details are inserted into skill list.
    function GetCity_Callback(obj) {
		var matchList = document.getElementById("city");
		var catagory1 = document.getElementById('district').value;
		matchList.options.length = 1; 
		//if ((obj[0][0]==null))
				//alert(obj[0][0]);
	//	alert(obj.length);
		if (catagory1 !='')
		 {
				if(obj.length==1 && obj[0][0]== null)
					return;	
				for (var i = 0; i <obj.length; i++)
					{
						var optn = document.createElement("OPTION");
						optn.text = obj[i][0];
						optn.value = obj[i][1];
						matchList.options.add(optn);
						
					}
		}
 	 }
	 
function check(form)
{
//if(document.form2.old.value == "")
  if (form.old.value == "") {
        alert( "Please Enter Your Old Mobile Number or Current Mobile Number!" );
        form.old.focus();
        return false ;
    }
  if (form.newno.value == "") {
        alert( "Please Enter Your New Mobile Number!" );
        form.newno.focus();
        return false ;
    }
  if (form.name.value == "") {
        alert( "Please Enter Your Name!" );
        form.name.focus();
        return false ;
    }
if (form.code.value == "") {
        alert( "Please Enter Secreat code!" );
        form.code.focus();
        return false ;
    }
return true;
}
function fndphone(form)
{
//if(document.form2.old.value == "")
  if (form.mobile.value == "") {
        alert( "Please Enter Your friend Old Mobile Number to find new number!");
        form.mobile.focus();
        return false ;
    }
  if (form.name.value == "") {
        alert( "Please Enter Your friend Name!");
        form.name.focus();
        return false ;
    }
}
function chksearch()
{
//if(document.form2.old.value == "")
//   alert("wew");

  if ((document.frmSearch.state.value == "")||(document.frmSearch.search.value == "")) {
        alert( "Please select atleast state and then enter the keywords to search.");
        document.frmSearch.search.focus();
        return false ;
    }

}
function openWin(Url,Name,Width,Height,Scrollbars) 
{
var features = 'status=no left=0 top=0,scrollbars=' + Scrollbars + ',width=' + Width + ',height=' + Height;
window.open(Url, Name, features );
}

function express_openfulWin(Url) {
window.location = Url;
}
function chkblogsadd(form)
{
	if (form.name.value == "") 
	{
        alert( "Please Enter Your Name!");
        form.name.focus();
        return false ;
    }

	if (form.email.value == "") 
	{
        alert( "Please Enter Your Email Address!");
        form.email.focus();
        return false ;
    }
	if (form.topic.value == "") 
	{
        alert( "Please Enter Your Topic!");
        form.topic.focus();
        return false ;
    }
	if (form.description.value == "") 
	{
        alert( "Please Enter Your Comments!");
        form.description.focus();
        return false ;
    }
}
function chkcmts(form)
{
	if (form.name.value == "") 
	{
        alert( "Please Enter Your Name!");
        form.name.focus();
        return false ;
    }

	if (form.email.value == "") 
	{
        alert( "Please Enter Your Email Address!");
        form.email.focus();
        return false ;
    }
	if (form.comments.value == "") 
	{
        alert( "Please Enter Your Comments!");
        form.comments.focus();
        return false ;
    }
}

function GetDistrict1() {
        var catagory1 = document.getElementById('state1').value;
	//	alert(catagory1);
		var matchList = document.getElementById("city1");
		matchList.options.length = 1; 
		var catagory=String(catagory1);
		//alert(catagory1);
	//	alert(matchList.innerHTML);		
	    agent.call('','GetDistrict1','GetDistrict1_Callback',catagory);
	//	alert(catagory1);
			
    }
	
//function gets skill details as object. skill details are inserted into skill list.
    function GetDistrict1_Callback(obj) {
		var matchList = document.getElementById("district1");
		var catagory1 = document.getElementById('state1').value;
		matchList.options.length = 1; 
		//if ((obj[0][0]==null))
				//alert(obj[0][0]);
		//alert(obj.length);
		if (catagory1 !='')
		 {
				if(obj.length==1 && obj[0][0]== null)
					return;	
				for (var i = 0; i <obj.length; i++)
					{
						var optn = document.createElement("OPTION");
						optn.text = obj[i][0];
						optn.value = obj[i][1];
						matchList.options.add(optn);
						
					}
		}
 	 }
	 
	 
	 function GetCity1() {
        var catagory1 = document.getElementById('district1').value;
		var catagory=String(catagory1);
		//alert(catagory);		
	       agent.call('','GetCity1','GetCity1_Callback',catagory);
			
    }
	
//function gets skill details as object. skill details are inserted into skill list.
    function GetCity1_Callback(obj) {
		var matchList = document.getElementById("city1");
		var catagory1 = document.getElementById('district1').value;
		matchList.options.length = 1; 
		//if ((obj[0][0]==null))
				//alert(obj[0][0]);
	//	alert(obj.length);
		if (catagory1 !='')
		 {
				if(obj.length==1 && obj[0][0]== null)
					return;	
				for (var i = 0; i <obj.length; i++)
					{
						var optn = document.createElement("OPTION");
						optn.text = obj[i][0];
						optn.value = obj[i][1];
						matchList.options.add(optn);
						
					}
		}
 	 }
	 

	 function GetDst() {
	//	 alert("hi");
        var catagory1 = document.getElementById('state2').value;
		var catagory=String(catagory1);
	//	alert(catagory1);
	//	alert(matchList.innerHTML);		
	    agent.call('','GetDst','GetDst_Callback',catagory);
	//	alert(catagory1);
			
    }
	
//function gets skill details as object. skill details are inserted into skill list.
    function GetDst_Callback(obj) {
		var matchList = document.getElementById("district2");
		var catagory1 = document.getElementById('state2').value;
		matchList.options.length = 1; 
		//if ((obj[0][0]==null))
				//alert(obj[0][0]);
		//alert(obj.length);
		if (catagory1 !='')
		 {
				if(obj.length==1 && obj[0][0]== null)
					return;	
				for (var i = 0; i <obj.length; i++)
					{
						var optn = document.createElement("OPTION");
						optn.text = obj[i][0];
						optn.value = obj[i][1];
						matchList.options.add(optn);
						
					}
		}
 	 }
	 
	 
	  function GetDst1() {
	//	 alert("hi");
        var catagory1 = document.getElementById('districtstate').value;
	//	alert(catagory1);
		var catagory=String(catagory1);
	//	alert(catagory1);
//		alert(matchList.innerHTML);		
	    agent.call('','GetDst1','GetDst1_Callback',catagory);
	//	alert(catagory1);
			
    }
	
//function gets skill details as object. skill details are inserted into skill list.
    function GetDst1_Callback(obj) {
		
		var matchList = document.getElementById("district");
	//	alert(matchList.value);
		var catagory1 = document.getElementById('districtstate').value;
		matchList.options.length = 1; 
		//if ((obj[0][0]==null))
				//alert(obj[0][0]);
	//	alert(obj.length);
		if (catagory1 !='')
		 {
				if(obj.length==1 && obj[0][0]== null)
					return;	
				for (var i = 0; i <obj.length; i++)
					{
						var optn = document.createElement("OPTION");
						optn.text = obj[i][0];
						optn.value = obj[i][1];
						matchList.options.add(optn);
						
					}
		}
 	 }
	 