// 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;
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
{
  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
