arw="<img src='images/arr_B.gif' border='0' alt='' valign='top' style='padding-bottom:2px;'>&nbsp; ";
function check()
{	//alert("tyg");
	
	var msg='';
	var msg1="";i=0;
	//Name
   	if(document.register.stname.value=="")
		{
			msg+=arw+" Name"+"<br>";
			if(i!=1){i=1;
			msg1="document.register.stname";
			}	 
		}else if(document.register.stname.value!="")
		{
			if(document.register.stname.value!=""){
				var regnext= /^[A-Za-z]+[A-Za-z\s\.]+$/;
				if((document.register.stname.value.indexOf(".")==0) || (document.register.stname.value.indexOf(" ")==0)){
					msg+=arw+"First character of  Name should be alphabet character"+"<br>";
					if(i!=1){i=1;
					msg1="document.register.stname";
						}	 
				}else if(regnext.test(document.register.stname.value) == false){	
					msg+=arw+"Name should be alphabet character"+"<br>";
					if(i!=1){i=1;
					msg1="document.register.stname";
					}	 
				}
			}
		}
          //Institution
	if(document.register.institute.value=="")
		{
			msg+=arw+"Institution"+"<br>";
			if(i!=1){i=1;
			msg1="document.register.institute";
				}	
		}
   	//Designation
	var a=0;
	for(j=0;j<document.register.designation.length;j++)
	{
	if(document.register.designation[j].checked==false){
	a+=1;
	}
	}
	if(a==document.register.designation.length){
	msg+=arw+"Please select any one Designation"+"<br>";
	}

		//Mailing address
	if(document.register.address.value=="")
		{
			msg+=arw+"Mailing address/Postal code"+"<br>";
			if(i!=1){i=1;
			msg1="document.register.address";
				}
		}

		//PinCode 1
	if(document.register.pincode.value=="")
		{
			msg+=arw+"Pin Code "+"<br>";
			if(i!=1){i=1;
			msg1="document.register.pincode";
				}
		}
	//phone No
	if(document.register.phone.value=="")
	{
		msg+=arw+"Phone "+"<br>";
		if(i!=1){i=1;
		msg1="document.register.phone";
		}
	}
	//mobile No
	
	 if(document.register.mobile.value=="")
	{
		msg+=arw+"Mobile number"+"<br>";
		if(i!=1){i=1;
			msg1="document.register.mobile";
		}
	}
	if(document.register.mobile.value!=""){
	if(document.register.mobile.value.length<10)
	{ 
		msg+=arw+"Mobile should be minimum 10 characters"+"<br>";
		if(i!=1){i=1;
			msg1="document.register.mobile";
		}
	}
	}
	//emailid
	if(document.register.email.value=="")
   	{ 
		//if(msg==''){msg1="document.regist.email";}
		msg+=arw+"Email "+"<br>";
		if(i!=1){i=1;
			msg1="document.register.email";
		}
		
	}
	if(document.register.email.value!="")
	{
		
		var reg = /^[A-Za-z0-9]+([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		var address =document.register.email.value;
		if(reg.test(address) == false) 
		{
		  msg+=arw+'Enter valid Email ID'+"<br>";
		 if(i!=1){i=1;
			msg1="document.register.email";
			}
		}
	}
	//DDNo
	if(document.register.dd_no.value=="")
		{
			msg+=arw+" DD No."+"<br>";
			if(i!=1){i=1;
			msg1="document.register.dd_no";
				}	
		}
		//Dated
		if(document.register.dd_dated.value=="")
	{
		msg+=arw+"Dated"+"<br>";
		if(i!=1){i=1;
			msg1="document.register.dd_dated";
		}
	}
	 //Drawn on
	/*if(document.register.drawn_on.value=="")
		{
			msg+=arw+"Drawn on"+"<br>";
			if(i!=1){i=1;
			msg1="document.register.drawn_on";
				}	
		}*/
		 //Bank
	if(document.register.bank .value=="")
		{
			msg+=arw+"Bank"+"<br>";
			if(i!=1){i=1;
			msg1="document.register.bank";
				}	
		}
		//Branch
    if(document.register.branch .value=="")
		{
			msg+=arw+"Branch"+"<br>";
			if(i!=1){i=1;
			msg1="document.register.branch";
				}	
		}
	if(msg1!=''){
		//alert("msg");
		document.getElementById('dialog').innerHTML=msg;
		//document.getElementById('focus12').value=msg1;
        //alert("hy");
		$('#dialog').dialog('open');
		return false;
	}

}



function contactnumbonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
	
if (unicode==8||unicode==9){ }
else{
if(unicode!=9 && unicode!=13 && unicode!=32 &&  unicode!=39  && unicode!=43 && unicode!=45 && unicode!=46){
if (unicode<48||unicode>57 || unicode==94){ 
msg="Please enter numbers only.";
//alert(msg1);
document.getElementById('dialog').innerHTML=msg;
//document.getElementById('focus12').value=msg1;
$('#dialog').dialog('open');

return false
}
}
}
}



function characteronly(e){
var unicode=e.charCode? e.charCode : e.keyCode
	//alert(unicode);
if(unicode!=9 && unicode!=13 &&  unicode!=39 &&  unicode!=46 && unicode!=38 &&  unicode!=40 && unicode!=37 &&  unicode!=13){
//if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if ((unicode<65||unicode>122)&&(unicode!=32)&&(unicode!=8) || (unicode==94)){ //if not a number
msg="Please enter only the alphabetic characters and space.";
document.getElementById('dialog').innerHTML=msg;
//document.getElementById('focus12').value=msg1;
$('#dialog').dialog('open');
return false //disable key press
}
}
}

function guestbook()
{//alert("fsgd");
var msg='';
var msg1="";i=0;
//Your Name
	if(document.postBless.yname.value=="")
		{//alert("hai");
			msg+=arw+"My Name"+"<br>";
			if(i!=1){i=1;
			msg1="document.postBless.yname";
			}	
		}
	if(document.postBless.yname.value!=""){//alert("hai2");
		var regnext= /^[A-Za-z]+[A-Za-z\s\.]+$/;
		if((document.postBless.yname.value.indexOf(".")==0) || (document.postBless.yname.value.indexOf(" ")==0)) 
		{
		msg+=arw+"First character of Your Name should be alphabet character"+"<br>";
		if(i!=1){i=1;
			msg1="document.postBless.yname";
			}	
		}
		else if(regnext.test(document.postBless.yname.value) == false)
		{	
		msg+=arw+"Your Name should be alphabet character"+"<br>";
		if(i!=1){i=1;
			msg1="document.postBless.yname";
			}	
		}
   }
	//Email Id
   if(document.postBless.emailid.value=="")
	{ 
		msg+=arw+"My Email ID"+"<br>";
		if(i!=1){i=1;
			msg1="document.postBless.emailid";
		}
	}


	if(document.postBless.emailid.value!="")
	{//alert("Hi1");
		var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		var address = document.postBless.emailid.value;
		if(reg.test(address) == false) 
		{
			msg+=arw+" Invalid Email ID "+"<br>";
			if(i!=1){i=1;
			msg1="document.postBless.emailid";
		}
		}
	}
	//Email Provison
	var b=0;
	for(j=0;j<document.postBless.display.length;j++)
	{
	if(document.postBless.display[j].checked==false){
	b+=1;
	}
	}
	if(b==document.postBless.display.length){
	msg+=arw+"Please select Provision for showing Email ID"+"<br>";
	}
	//Phone No
   /*if(document.postBless.phone.value=="")
	{ 
		msg+=arw+"Phone No."+"<br>";
		if(i!=1){i=1;
			msg1="document.postBless.phone";
		}
	}*/
   //Where are you from?
   /*if(document.postBless.fromwhere.value=="")
	{
		msg+=arw+"Where are you from?"+"<br>";
		if(i!=1){i=1;
			msg1="document.postBless.fromwhere";
		}
	}
      //Institution
	if(document.postBless.institute.value=="")
		{
			msg+=arw+"Institution"+"<br>";
			if(i!=1){i=1;
			msg1="document.register.institute";
				}	
		}*/
	//Designation
	var a=0;
	for(j=0;j<document.postBless.designation.length;j++)
	{
	if(document.postBless.designation[j].checked==false){
	a+=1;
	}
	}
	if(a==document.postBless.designation.length && document.postBless.others.value==""){
	msg+=arw+"Please select any one Designation or Specify in Others "+"<br>";
	}
	/*//Mailing address
	if(document.postBless.address.value=="")
	{
	msg+=arw+"Mailing Address"+"<br>";
	if(i!=1){i=1;
	msg1="document.postBless.address";
	}
	}*/
	//Message
	if(document.postBless.message.value=="")
		{
			msg+=arw+"My Message"+"<br>";
			if(i!=1){i=1;
			msg1="document.postBless.message";
				}
		}
	//Type Shown Text
		if(document.postBless.STI_imgString.value=="")
			{
		msg+=arw+"Type Shown Text"+"<br>";
		if(i!=1){i=1;
			msg1="document.postBless.STI_imgString";
		}
	}

   if(msg!=''){
		//alert("hai11");
		document.getElementById('dialog').innerHTML=msg;
		document.getElementById('focus12').value=msg1;
        //alert("hy");
		$('#dialog').dialog('open');
		return false;
	}

}
function contactCheck()
{
var msg='';
var msg1="";i=0;
//Your Name
	if(document.contactFrm.yourName.value=="")
		{//alert("hai");
			msg+=arw+"Your Name"+"<br>";
			if(i!=1){i=1;
			msg1="document.contactFrm.yourName";
			}	
		}
	  if(document.contactFrm.yourName.value!=""){//alert("hai2");
		var regnext= /^[A-Za-z]+[A-Za-z\s\.]+$/;
		if((document.contactFrm.yourName.value.indexOf(".")==0) || (document.contactFrm.yourName.value.indexOf(" ")==0)) 
		{
		msg+=arw+"First character of Your Name should be alphabet character"+"<br>";
		if(i!=1){i=1;
			msg1="document.contactFrm.yourName";
			}	
		}
		else if(regnext.test(document.contactFrm.yourName.value) == false)
		{	
		msg+=arw+"Your Name should be alphabet character"+"<br>";
		if(i!=1){i=1;
			msg1="document.postBless.yourName";
			}	
		}
   }
   //Your E-mail-ID
if(document.contactFrm.emailID.value=="")
	{ 
		msg+=arw+"Your E-mail-ID"+"<br>";
		if(i!=1){i=1;
			msg1="document.contactFrm.emailID";
		}
	}
	if(document.contactFrm.emailID.value!="")
	{//alert("Hi1");
		var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		var address = document.contactFrm.emailID.value;
		if(reg.test(address) == false) 
		{
			msg+=arw+" Invalid Your E-mail-ID "+"<br>";
			if(i!=1){i=1;
			msg1="document.contactFrm.emailID";
		}
		}
	}
	//Phone No
	if(document.contactFrm.phoneNo.value=="")
	{
		msg+=arw+"Phone No."+"<br>";
		if(i!=1){i=1;
			msg1="document.contactFrm.phoneNo";
		}
	}
	/*if(document.contactFrm.phoneNo.value!=""){
	if(document.contactFrm.phoneNo.value.length<10)
	{ 
		msg+=arw+"Phone No should be minimum 10 characters"+"<br>";
		if(i!=1){i=1;
			msg1="document.contactFrm.phoneNo";
		}
	}
	}*/
	//Subject
	if(document.contactFrm.subject.value=="")
	{
		msg+=arw+"Subject"+"<br>";
		if(i!=1){i=1;
			msg1="document.contactFrm.subject";
		}
	}
	
//Message
if(document.contactFrm.message.value=="")
		{
			msg+=arw+"Message"+"<br>";
			if(i!=1){i=1;
			msg1="document.contactFrm.message";
				}
		}

	//Type Shown Text
		if(document.contactFrm.STI_imgString.value=="")
			{
		msg+=arw+"Type Shown Text"+"<br>";
		if(i!=1){i=1;
			msg1="document.sponsorFrm.STI_imgString";
		}
	}

   if(msg!=''){
		//alert("hai11");
		document.getElementById('dialog').innerHTML=msg;
		document.getElementById('focus12').value=msg1;
        //alert("hy");
		$('#dialog').dialog('open');
		return false;
	}

}
function creativeCorner()
{
var msg='';
var msg1="";i=0;
//Name
	if(document.creativeFrm.yourname.value=="")
		{//alert("hai");
			msg+=arw+"Your Name"+"<br>";
			if(i!=1){i=1;
			msg1="document.creativeFrm.yourname";
			}	
		}
	if(document.creativeFrm.yourname.value!=""){//alert("hai2");
	var regnext= /^[A-Za-z]+[A-Za-z\s\.]+$/;
	if((document.creativeFrm.yourname.value.indexOf(".")==0) || (document.creativeFrm.yourname.value.indexOf(" ")==0)) 
	{
	msg+=arw+"First character of Your Name should be alphabet character"+"<br>";
	if(i!=1){i=1;
	msg1="document.creativeFrm.yourname";
	}	
	}
	else if(regnext.test(document.creativeFrm.yourname.value) == false)
	{	
	msg+=arw+"Your Name should be alphabet character"+"<br>";
	if(i!=1){i=1;
	msg1="document.postBless.yourname";
	}	
	}
	}

//Title
	if(document.creativeFrm.title.value=="")
		{//alert("hai");
			msg+=arw+"Title"+"<br>";
			if(i!=1){i=1;
			msg1="document.creativeFrm.title";
			}	
		}
		//Description
if(document.creativeFrm.description.value=="")
		{
			msg+=arw+"Description"+"<br>";
			if(i!=1){i=1;
			msg1="document.creativeFrm.description";
				}
		}
		//Upload Photo 
if(document.creativeFrm.up_photo.value=="")
	{
		msg+=arw+"Upload Photo"+"<br>";
		if(i!=1){i=1;
			msg1="document.creativeFrm.up_photo";
				}
	}
	if(document.creativeFrm.up_photo.value!="")
	{
		 var ima1=document.creativeFrm.up_photo.value;
		 var ext=ima1.substring(ima1.lastIndexOf(".")+1,ima1.length).toLowerCase();
		 if (ext!=""){	
		if((ext!='jpg')&&(ext!='JPG')&&(ext!='gif')&&(ext!='GIF')&&(ext!='png')&&(ext!='PNG'))
			 {
		      msg+=arw+"Upload Photo is invalid format.\n You may only upload the .jpg or .gif or .png types of images";
			  if(i!=1){i=1;
			msg1="document.creativeFrm.up_photo";
				}
		 	}					 
		 }  
	} 
	
//Type Shown Text
		if(document.creativeFrm.STI_imgString.value=="")
			{
		msg+=arw+"Type Shown Text"+"<br>";
		if(i!=1){i=1;
			msg1="document.creativeFrm.STI_imgString";
		}
	}
		 if(msg!=''){
		//alert("hai11");
		document.getElementById('dialog').innerHTML=msg;
		document.getElementById('focus12').value=msg1;
        //alert("hy");
		$('#dialog').dialog('open');
		return false;
	}

}
function sponsors(va)
{
var msg='';
var msg1="";i=0;
//Name
	if(document.sponsorFrm.yname.value=="")
		{//alert("hai");
			msg+=arw+"Name"+"<br>";
			if(i!=1){i=1;
			msg1="document.sponsorFrm.yname";
			}	
		}
	if(document.sponsorFrm.yname.value!=""){//alert("hai2");
		var regnext= /^[A-Za-z]+[A-Za-z\s\.]+$/;
		if((document.sponsorFrm.yname.value.indexOf(".")==0) || (document.sponsorFrm.yname.value.indexOf(" ")==0)) 
		{
		msg+=arw+"First character of Name should be alphabet character"+"<br>";
		if(i!=1){i=1;
			msg1="document.sponsorFrm.yname";
			}	
		}
		else if(regnext.test(document.sponsorFrm.yname.value) == false)
		{	
		msg+=arw+"Your Name should be alphabet character"+"<br>";
		if(i!=1){i=1;
			msg1="document.sponsorFrm.yname";
			}	
		}
   }
	//Email Id
   if(document.sponsorFrm.emailid.value=="")
	{ 
		msg+=arw+"Email Id"+"<br>";
		if(i!=1){i=1;
			msg1="document.sponsorFrm.emailid";
		}
	}


	if(document.sponsorFrm.emailid.value!="")
	{//alert("Hi1");
		var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		var address = document.sponsorFrm.emailid.value;
		if(reg.test(address) == false) 
		{
			msg+=arw+" Invalid Email Id "+"<br>";
			if(i!=1){i=1;
			msg1="document.sponsorFrm.emailid";
		}
		}
	}
 //Telephone
	if(document.sponsorFrm.telephone.value=="")
		{
			msg+=arw+"Telephone"+"<br>";
			if(i!=1){i=1;
			msg1="document.sponsorFrm.telephone";
				}	
		}
//Mobile No.
	if(document.sponsorFrm.mobile.value=="")
		{
			msg+=arw+"Mobile No."+"<br>";
			if(i!=1){i=1;
			msg1="document.sponsorFrm.mobile";
				}	
		}
	if(document.sponsorFrm.mobile.value!=""){
	if(document.sponsorFrm.mobile.value.length<10)
	{ 
		msg+=arw+"Mobile should be minimum 10 characters"+"<br>";
		if(i!=1){i=1;
			msg1="document.sponsorFrm.mobile";
		}
	}
	}
   //State
   if(document.sponsorFrm.state.value=="")
	{
		msg+=arw+"State"+"<br>";
		if(i!=1){i=1;
			msg1="document.sponsorFrm.state";
		}
	}
      //Country
	if(document.sponsorFrm.country.value=="")
		{
			msg+=arw+"Country"+"<br>";
			if(i!=1){i=1;
			msg1="document.sponsorFrm.country";
				}	
		}
   
	//Sponsorship Amount
	if(document.sponsorFrm.amount.value=="")
		{
			msg+=arw+"Sponsorship Amount"+"<br>";
			if(i!=1){i=1;
			msg1="document.sponsorFrm.amount";
				}
		}

	//Currency
	if(document.sponsorFrm.currency.value=="")
		{
			msg+=arw+"Currency"+"<br>";
			if(i!=1){i=1;
			msg1="document.sponsorFrm.currency";
				}
		}
	
	//Type Shown Text
		if(document.sponsorFrm.STI_imgString.value=="")
			{
		msg+=arw+"Type Shown Text"+"<br>";
		if(i!=1){i=1;
			msg1="document.sponsorFrm.STI_imgString";
		}
	}

   if(msg!=''){
		//alert("hai11");
		document.getElementById('dialog').innerHTML=msg;
		document.getElementById('focus12').value=msg1;
        //alert("hy");
		$('#dialog').dialog('open');
		return false;
	}else{
		if(va=="e"){return true;}
		else{
			NewWindow('sponsorPopup.php','name','600','480','yes');
			return false;
		}
			
	}

}


arw="<img src='./images/arr_B.gif' border='0' alt='' valign='top' style='padding-bottom:2px;'>&nbsp; ";
/*NEW USER REGISTERATION
*/
function registration()
{	
	var msg="";
	var msg1="";i=0;

	//Name
	if(document.reg.f_name.value=="")
		{
		msg+=arw+"Name"+'<br>';
		if(i!=1){i=1;
		msg1="document.reg.f_name";
		}}
		else if(document.reg.f_name.value!="")
		{
			if(document.reg.f_name.value!=""){
			var regnext= /^[A-Za-z]+[A-Za-z\s\.]+$/;
			if((document.reg.f_name.value.indexOf(".")==0) || (document.reg.f_name.value.indexOf(" ")==0)){
				msg+=arw+"First character of NAME should be alphabet character"+"<br>";
				}
				else if(regnext.test(document.reg.f_name.value) == false){	
				msg+=arw+"NAME should be alphabet character"+"<br>";
				}
			}
		}
	//Institution Name
	if(document.reg.ins_name.value=="")
		{
		msg+=arw+"Institution Name"+'<br>';
		if(i!=1){i=1;
		msg1="document.reg.ins_name";
		}}
	//Institution Location
	if(document.reg.main_stream_teacher.checked==false && document.reg.head_ins.checked==false && document.reg.spec_educ.checked==false && document.reg.reh_worker.checked==false && document.reg.parnt.checked==false && document.reg.studnt.checked==false && document.reg.voc_instructor.checked==false)
		{
		msg+=arw+"Institution Location"+'<br>';
		if(i!=1){i=1;
		msg1="document.reg.main_stream_teacher";
		}}
	//Mobile
	if(document.reg.mob_no.value=="")
		{
		msg+=arw+"Mobile"+'<br>';
		if(i!=1){i=1;
		msg1="document.reg.mob_no";
		}}

	//Email Address
	if(document.reg.email_address.value=="")
   	{ 
		msg+=arw+"Email Address"+"<br>";
		if(i!=1){i=1;
		msg1="document.reg.email_address";
		}
	}
	if(document.reg.email_address.value!="")
	{
		var reg = /^[A-Za-z0-9]+([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		var address =document.reg.email_address.value;
		if(reg.test(address) == false) 
		{
			msg+=arw+"Enter valid Email id"+"<br>";
			if(i!=1){i=1;
			msg1="document.reg.email_address";
			}
		}
	}
	//Registration Fee

	if(document.reg.r_draft.value=="")
   	{ 
		msg+=arw+"By Demand Draft No"+"<br>";
	}
	if(document.reg.r_dated.value=="")
   	{ 
		msg+=arw+"Dated"+"<br>";
	}
	if(document.reg.r_drawn.value=="")
   	{ 
		msg+=arw+"Drawn on"+"<br>";
	}
	if(document.reg.r_bank.value=="")
   	{ 
		msg+=arw+"Bank"+"<br>";
	}
	if(document.reg.r_branch.value=="")
   	{ 
		msg+=arw+"Branch"+"<br>";
	}

	//Workshop on day 2
	if(document.reg.workshop_one.checked==false && document.reg.workshop_two.checked==false)
	{
		msg+=arw+"Workshop on day 2"+"<br>";
		if(i!=1){i=1;
		msg1="document.reg.workshop_one";
		}
	}
	//Terms 
if(document.reg.STI_imgString.value=="")
	{
		msg+=arw+"Type the letters shown"+"<br>";
		if(i!=1){i=1;
		msg1="document.reg.STI_imgString";
		}
	}
//DIALOG
	if(msg!='')
	{ 
		
		document.getElementById('dialog').innerHTML=msg;
        $('#dialog').dialog('open');
		return false;
	}
}

//ALLOW NUMBERS,SMALL CHARACTERS,.(DOT), @ &_(UNDERSCORE) FOR EMAIL ID.
function emailonly(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if(unicode!=9 && unicode!=13 &&  unicode!=46 &&  unicode!=64 &&  unicode!=95){
	//if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
		if ((unicode<48||unicode>57) && (unicode<97||unicode>122) && (unicode!=8) || unicode==94 || unicode==46){ //if not a number
			msg="Please enter the numbers, small alphabetic characters,.(dot),@ and _(underscore).";
			document.getElementById('dialog').innerHTML=msg;
			$('#dialog').dialog('open');
			return false //disable key press
		}
	}
}
//ALLOW NUMBERS,+ AND -(HYPEN) FOR PHONE
function contactnumbonly1(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode==8||unicode==9){ }
	else
	{
		if(unicode!=9 && unicode!=13 && unicode!=32 &&  unicode!=39  && unicode!=43 && unicode!=45){
			if (unicode<48||unicode>57 || unicode==94){ 
				msg="Please enter numbers only.";
				//alert(msg1);
				document.getElementById('dialog').innerHTML=msg;
				$('#dialog').dialog('open');
				return false
			}
		}
	}
}
//ALLOW ONLY ALPHABETIC CHARACTERS AND SPACE.
function charactername(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	//if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
	if(unicode!=9 && unicode!=13 && unicode!=37 && unicode!=38 && unicode!=39 && unicode!=40){
		if ((unicode<64||unicode>122)&&(unicode!=32)&&(unicode!=8)){ //if not a number
			msg="Please enter only the alphabetic characters and space.";
			document.getElementById('dialog').innerHTML=msg;
			$('#dialog').dialog('open');
			return false //disable key press
		}
	}
}
//ALLOW ALPHABETIC CHARACTERS, .(DOT) AND SPACE FOR NAME
function characterNameonly(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	//if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
	if(unicode!=9 && unicode!=13 && unicode!=37 && unicode!=38 && unicode!=39 && unicode!=40){
		if ((unicode<64||unicode>122)&&(unicode!=32)&&(unicode!=46)&&(unicode!=8)){ //if not a number
			msg="Please enter only the characters, dot and space.";
			document.getElementById('dialog').innerHTML=msg;
			$('#dialog').dialog('open');
			return false //disable key press
		}
	}
}
	
