// JavaScript Document

var RecaptchaOptions = {
   theme : 'white',
   tabindex : 0
};

function nospl()
{
var detl = document.getElementById('details').value;
if (detl=="<")
{
alert (detl);
document.getElementById('details').value = "";
}
}
function validate()
{
var num1=form1.name;
var num2=form1.email;
name=num1.value;
email=num2.value;

var scrt=form1.scrtcode;
scrtcode=scrt.value;




if(name.length==0)
{
alert("plz enter the name");
num1.focus();
return false;
}
else  if((name.substring(0,1)<"a" || name.substring(0,1)>"z")  && (name.substring(0,1)<"A" || name.substring(0,1)>"Z"))
{
alert("login should begin with alphabat");
num1.focus();
return false;
}
else if(email.length==0) 
{
alert("plz enter the email ");
num2.focus();
return false;
}
else if((email !="") && (email.indexOf("@")== -1) || (email.indexOf(".")== -1))
{
alert("plz enter the valid email ");
num2.focus();
return false;
}   
else if(scrtcode.length==0) 
{
alert("plz enter validation code.");
scrt.focus();
flag=false;
return false;
}
else if(scrtcode != rndn) 
{
alert("Validation code is incorrect.");
scrt.focus();
flag=false;
return false;
}
else
{
  flag=true;
}


if (flag==true)
{
 var newWin;
 newWin =window.open("","mail",'resizable=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 form1.target="mail";
 form1.submit();
 form1.reset();
 return false;	
}
}
     
function writeConsole(content) {
 top.consoleRef= window.open('','myconsole',
  'width=350,height=250'
   +',menubar=0'
   +',toolbar=1'
   +',status=0'
   +',scrollbars=1'
   +',resizable=1')
 top.consoleRef.document.writeln(
  '<html><head><title>Console</title></head>'
   +'<body bgcolor=white onLoad="self.focus()">'
   +content
   +'<!--#include virtual="includes/holidays-goa.html" --> </body></html>'
 )
 top.consoleRef.document.close()
}// JavaScript Document



function divshow(div1,div2,div3,div4,div5,div6,div7,div8) {

	document.getElementById(div1).style.display = "block";

	document.getElementById(div2).style.display = "none";

	document.getElementById(div3).style.display = "none";

	document.getElementById(div4).style.display = "none";

	document.getElementById(div5).style.display = "none";

	document.getElementById(div6).style.display = "none";	

	document.getElementById(div7).style.display = "none";	
	document.getElementById(div8).style.display = "none";	

}



function divhide() {

	document.getElementById("ladakh").style.display = "none";

	document.getElementById("jk").style.display = "none";

	document.getElementById("himachal").style.display = "none";

	document.getElementById("sikkim").style.display = "none";

	document.getElementById("rajasthan").style.display = "none";

	document.getElementById("central").style.display = "none";	
	document.getElementById("south").style.display = "none";	

	document.getElementById("uttrakhand").style.display = "none";	

	

}

