function regValidate()
{
		if(document.getElementById('fnm').value=="")
		{
			alert("Please Enter First Name");
			return false;
		}

		if(document.getElementById('lnm').value=="")
		{
			alert("Please Enter Last Name");
			return false;
		}		

		if(document.getElementById('addr').value=="")
		{
			alert("Please Enter Address");
			return false;
		}

		if(document.getElementById('pin').value=="")
		{
			alert("Please Enter Pin/Zip Code");
			return false;
		}
		if(document.getElementById('phone').value!="")
		{
			if(document.getElementById('phone').value.length>=1 && document.getElementById('phone').value.length<=9)
			{
				document.getElementById('phone').value='';		
				document.getElementById('phone').focus();			
				alert("Invalid Landline  Number");		
				return false;
			}	
		}
		if(document.getElementById('mob').value=="")
		{
			alert("Please Enter Mobile Number");
			return false;
		}		
		if(document.getElementById('loc').value=="")
		{
			alert("Please Select Location");
			return false;
		}
		if(document.getElementById('email').value=="")
			{
				alert("Please Enter Email Id");
				return false;
			}
		if(document.getElementById('avail').innerHTML!="Email Id Available")
			{
				//alert(document.getElementById('avail').innerHTML);
				alert("This Email Id Is Not Available Please Enter Another Email Id");
				return false;
			}
			
		if(document.getElementById('pwd').value=="")
			{
				alert("Please Enter Password");
				return false;
			}

		if(document.getElementById('cpwd').value=="")
			{
				alert("Please Enter Confirm Password");
				return false;
			}
		
		if(document.getElementById('pwd').value!=document.getElementById('cpwd').value)
		{
			alert("Password Not Match");
			return false;
		}
			
		if(document.getElementById('capcha').value=="")
		{
			alert("Please Enter Image Text");
			return false;
		}
		
		if(document.getElementById('capcha').value!=document.getElementById('imgtxt').value)
		{
			alert("Image Text Not Match");
			return false;
		}
	

}

function fnm_valid0()
{	
	var a1=document.getElementById('fnm');
	var a=document.getElementById('fnm').value;

	
	if(!blockSpecialChar(a))
	{
		document.getElementById('fnm').value='';		
		a1.focus();			
		alert("Invalid Text");		
		return false;
	}	
}

function blockSpecialChar(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Zs]/i)));		
}

function lnm_valid()
{
	var a1=document.getElementById('lnm');
	var a=document.getElementById('lnm').value;	
	if(!blockSpecialChar(a))
	{
		document.getElementById('lnm').value='';		
		a1.focus();			
		alert("Invalid Text");		
		return false;
	}	
}

function pin_valid()
{
	var a1=document.getElementById('pin');
	var a=document.getElementById('pin').value;
	if(a.length>=1 && a.length<=5)
	{
		document.getElementById('pin').value='';		
		a1.focus();			
		alert("Invalid Pin/Zip Code");			
		return false;
	}		
	if(!blockPinChar(a))
	{
		document.getElementById('pin').value='';		
		a1.focus();			
		alert("Invalid Pin/Zip Code");		
		return false;
	}	
}

function blockPinChar(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z0-9s]/i)));		
}

function phone_valid()
{
	var a1=document.getElementById('phone');
	var a=document.getElementById('phone').value;	
	if(!checkPhoneNumeric(a))
	{
		document.getElementById('phone').value='';		
		a1.focus();			
		alert("Invalid Landline  Number");		
		return false;
	}	
}

function checkPhoneNumeric(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z0-9\+ \-]/i)));
}

function mob_valid()
{
	var a1=document.getElementById('mob');
	var a=document.getElementById('mob').value;
	
	if(a.length>=1 && a.length<=8)
	{
		document.getElementById('mob').value='';		
		a1.focus();			
		alert("Invalid Mobile Number");		
		return false;
	}

	if(!checkNumeric(a))
	{
		document.getElementById('mob').value='';		
		a1.focus();			
		alert("Invalid Mobile Number");		
		return false;
	}	
}

function checkNumeric(strVal) 
{
	return (-1 == (pos=strVal.search(/[^0-9]/i)));
}

function email_valid()
{
	var strval=document.getElementById('email').value;	
	if(strval!='')
	{
		var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;

			  if(pattern.test(strval)) 
			  {					
					chk_avail(strval);						
			  } 
			  else
			  {	
				alert("Invalid Email Id");
				document.getElementById('email').value='';		
				//strval.focus();			
				return false;
			  }
	}
}


/*
if(document.getElementById('phone').value!="")
{
	if(document.getElementById('phone').value.length<10)
	{
		alert("Please enter valid landline number");    
		return false;
	}
}

if(document.getElementById('email').value!="")
	{	
		  var strval=document.getElementById('email').value;
		  var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;

		  if(pattern.test(strval)) 
		  {
				
					
			} 
		  else
		  {	
			alert("Invalid email address");
			return false;
		  }
	}
*/
function log_validate()
{
	if(document.getElementById('unm').value=="")
	{
		alert("Please Enter Username");
		return false;
	}
	
	if(document.getElementById('pwd').value=="")
	{
		alert("Please Enter Password");
		return false;
	}
}




function checkWord(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z0-9.&_,()[]\s]/i)));
}

function checkWord1(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z\s]/i)));
}

function pwd(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z0-9._,()!@#$%&*-=+^`~:;<>?{}[]|\s]/i)));
}



	function nwPageA(strct)
	{
		NewWindowEX(strct,150,200,570,620,"Business");
	}
	
	function NewWindowEX(strurl,Xpos,Ypos,ht,wd,name)
	{
			param = "height="+ht+",width="+wd+",location=no,toolbar=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,titlebar=no,copyhistory=no,top="+Xpos+",left="+Ypos;
			oc_infowin=window.open(strurl,name,param);
			if (oc_infowin != null)
			{
				oc_infowin.opener = self;
				//alert("Opener is closed: " + oc_infowin.opener.top + " Self.closed is " + self.top);
			}
			oc_infowin.focus();
	}
	
	function nwPageAPass(strct)
	{		
		//alert(strct);
		NewWindowEXPass(strct,200,350,260,300,"Business1");
	}
	
	function NewWindowEXPass(strurl,Xpos,Ypos,ht,wd,name)
{
		param = "height="+ht+",width="+wd+",location=no,toolbar=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,titlebar=no,copyhistory=no,top="+Xpos+",left="+Ypos;
		oc_infowin=window.open(strurl,name,param);
		if (oc_infowin != null)
		{
			oc_infowin.opener = self;
			//alert("Opener is closed: " + oc_infowin.opener.top + " Self.closed is " + self.top);
		}
		oc_infowin.focus();
}
			
			


function Resize(ht,wd)
{
		self.resizeTo(ht,wd);
		return true;
}

function hide()
{
document.getElementById('search').value='';
}


function vataCalc()
{

var a=0;

	for(i=1;i<=22;i++)
	{
		var temp="v"+i+"";
		if(document.getElementById(temp).checked==true)
		{			
			a++;
		}
	}
	
document.getElementById("vata").value=a;	

}


function pittaCalc()
{

var a=0;

	for(i=1;i<=22;i++)
	{
		var temp="p"+i+"";
		if(document.getElementById(temp).checked==true)
		{			
			a++;
		}
	}
	
document.getElementById("pitta").value=a;	

}

function kaphaCalc()
{

var a=0;

	for(i=1;i<=22;i++)
	{
		var temp="k"+i+"";
		if(document.getElementById(temp).checked==true)
		{			
			a++;
		}
	}
	
document.getElementById("kapha").value=a;	

}

function query_validate()
{
	if(document.getElementById('nm').value=='')
	{
		alert("Please Enter Name");
		return false;
	}
	
	if(document.getElementById('date1').value=='')
	{
		alert("Please Select Birth Date");
		return false;
	}
	if(document.getElementById('gen').value=='')
	{
		alert("Please Select Gender");
		return false;
	}
	if(document.getElementById('country').value=='')
	{
		alert("Please Enter Country");
		return false;
	}	
	if(document.getElementById('city').value=='')
	{
		alert("Please Enter City");
		return false;
	}	
	if(document.getElementById('email').value=='')
	{
		alert("Please Enter Email Id");
		return false;
	}
	if(document.getElementById('cn').value=='')
	{
		alert("Please Enter Contact No");
		return false;
	}
	if(document.getElementById('comp').value=='')
	{
		alert("Please Enter Present Complaints & Duration");
		return false;
	}
	
}

function nm_validate()
{
	var a1=document.getElementById('nm');
	var a=document.getElementById('nm').value;	
	if(!nm_blockSpecialChar(a))
	{
		document.getElementById('nm').value='';		
		a1.focus();			
		alert("Invalid Text");		
		return false;
	}	
}

function title_valid()
{
	var a1=document.getElementById('job_title');
	var a=document.getElementById('job_title').value;	
	if(!title_blockSpecialChar(a))
	{
		document.getElementById('job_title').value='';		
		a1.focus();			
		alert("Invalid Text");		
		return false;
	}	
}

function title_blockSpecialChar(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z\-. s]/i)));		
}

function nm_blockSpecialChar(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z s]/i)));		
}


function email_validate()
{
		var a1=document.getElementById('email');	
		var strval=document.getElementById('email').value;
		var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;

		  if(pattern.test(strval)) 
		  {
				
					
			} 
		  else if(strval!='')
		  {	
			document.getElementById('email').value='';		
			a1.focus();			
			alert("Invalid Email Id");		
			return false;
		  }
}

/*function age_validate()
{
	var a1=document.getElementById('age');
	var a=document.getElementById('age').value;
	
	if(a>100)
	{
		document.getElementById('age').value='';		
		a1.focus();			
		alert("Invalid Age");		
		return false;		
	}
	
	if(!checkNumeric(a))
	{
		document.getElementById('age').value='';		
		a1.focus();			
		alert("Invalid Age");		
		return false;
	}	
	
}*/


function cn_validate()
{
	var a1=document.getElementById('cn');
	var a=document.getElementById('cn').value;
	
	if((a.length>=1)&&(a.length<=8))
	{
		document.getElementById('cn').value='';		
		a1.focus();			
		alert("Invalid Contact Number");		
		return false;		
	}
	
	if(!cn_checkNumeric(a))
	{
		document.getElementById('cn').value='';		
		a1.focus();			
		alert("Invalid Contact Number");		
		return false;
	}	
}

function cn_checkNumeric(strVal) 
{
	return (-1 == (pos=strVal.search(/[^0-9\+\-]/i)));
}

function city_validate()
{
	var a1=document.getElementById('city');
	var a=document.getElementById('city').value;	
	if(!country_blockSpecialChar(a))
	{
		document.getElementById('city').value='';		
		a1.focus();			
		alert("Invalid City");		
		return false;
	}	
	
}



function country_validate()
{
	var a1=document.getElementById('country');
	var a=document.getElementById('country').value;	
	if(!country_blockSpecialChar(a))
	{
		document.getElementById('country').value='';		
		a1.focus();			
		alert("Invalid Country");		
		return false;
	}	
}

function country_blockSpecialChar(strVal)
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z,().\- s]/i)));		
}

function car_form_valid()
{
	if(document.getElementById('nm').value=="")
	{
		alert("Please Enter Name Of The Applicant");
		return false;
	}
	
	if((document.getElementById('c_addr').value=="")&&(document.getElementById('p_addr').value==""))
	{
		alert("Please Enter Present Or Permanent Address");
		return false;
	}
	
	if(document.getElementById('c_pin').value!="")
	{
		if(document.getElementById('c_addr').value=="")
		{
			alert("Please Enter Present Address");
			return false;
		}
	}
	
	if(document.getElementById('p_pin').value!="")
	{
		if(document.getElementById('p_addr').value=="")
		{
			alert("Please Enter Permanent Address");
			return false;
		}
	}
	
	if(document.getElementById('c_addr').value!="")
	{
		if(document.getElementById('c_pin').value=="")
		{
			alert("Please Enter Present Address Pin Code");
			return false;
		}
	}
	
	if(document.getElementById('p_addr').value!="")
	{
		if(document.getElementById('p_pin').value=="")
		{
			alert("Please Enter Permanent Address Pin Code");
			return false;
		}
	}
	
	if(document.getElementById('cnt_num').value=="")
	{
		alert("Please Enter Contact Number");
		return false;
	}
	
	if(document.getElementById('email').value=="")
	{
		alert("Please Enter Email Id");
		return false;
	}
	
	if(document.getElementById('resume').value=="")
	{
		alert("Please Upload Your Resume");
		return false;
	}
	
	if(document.getElementById('resume').value!="")
	{
			var a=document.getElementById('resume').value;
			var b= a.split('.');
			
			if((b[b.length-1].toLowerCase()=="txt")  || (b[b.length-1].toLowerCase()=="pdf") || (b[b.length-1].toLowerCase()=="doc") || (b[b.length-1].toLowerCase()=="docx")  || (b[b.length-1].toLowerCase()=="xls") || (b[b.length-1].toLowerCase()=="xlsx"))
			{				
				
			}
			else
			{
				alert("Invalid Resume File");
				return false;
			}				
	}
	
	document.myform.action="sv_resume_file.php";
}


function nm_valid()
{
	var a1=document.getElementById('nm');
	var a=document.getElementById('nm').value;	
	if(!nm_valid_blockSpecialChar(a))
	{
		document.getElementById('nm').value='';		
		a1.focus();			
		alert("Invalid Text");		
		return false;
	}	
}

function nm_valid_blockSpecialChar(strVal) 
{
	return (-1 == (pos=strVal.search(/[^a-zA-Z s]/i)));		
}

function c_pin_check()
{
	var a1=document.getElementById('c_pin');
	var a=document.getElementById('c_pin').value;
	if(a.length>=1 && a.length<=5)
	{
		document.getElementById('c_pin').value='';		
		a1.focus();			
		alert("Invalid Pin Code");			
		return false;
	}		
	if(!blockPinChar(a))
	{
		document.getElementById('c_pin').value='';		
		a1.focus();			
		alert("Invalid Pin Code");		
		return false;
	}	
}

function p_pin_check()
{
	var a1=document.getElementById('p_pin');
	var a=document.getElementById('p_pin').value;
	if(a.length>=1 && a.length<=5)
	{
		document.getElementById('p_pin').value='';		
		a1.focus();			
		alert("Invalid Pin Code");			
		return false;
	}		
	if(!blockPinChar(a))
	{
		document.getElementById('p_pin').value='';		
		a1.focus();			
		alert("Invalid Pin Code");		
		return false;
	}	
}

function cnt_num_valid()
{
	var a1=document.getElementById('cnt_num');
	var a=document.getElementById('cnt_num').value;
	
	if((a.length>=1)&&(a.length<=8))
	{
		document.getElementById('cnt_num').value='';		
		a1.focus();			
		alert("Invalid Contact Number");		
		return false;		
	}
	
	if(!cn_checkNumeric(a))
	{
		document.getElementById('cnt_num').value='';		
		a1.focus();			
		alert("Invalid Contact Number");		
		return false;
	}
}

function email_id_validate()
{
		var a1=document.getElementById('email');	
		var strval=document.getElementById('email').value;
		var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;

		  if(pattern.test(strval)) 
		  {
				
					
			} 
		  else if(strval!='')
		  {	
			document.getElementById('email').value='';		
			a1.focus();			
			alert("Invalid Email Id");		
			return false;
		  }
}

function login_validate()
{
	if(document.getElementById('unm').value=='')
	{
		alert("Please Enter Username");
		return false;
	}
	
	if(document.getElementById('pwd').value=='')
	{
		alert("Please Enter Password");
		return false;
	}
	
}

function forget_valid()
{
	if(document.getElementById('email').value=='')
	{
		alert("Please Enter Email Id");
		return false;
	}
	
}

function chk_email()
{
		var a1=document.getElementById('email');	
		var strval=document.getElementById('email').value;
		var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;

		  if(pattern.test(strval)) 
		  {
				
					
			} 
		  else if(strval!='')
		  {	
			document.getElementById('email').value='';		
			a1.focus();			
			alert("Invalid Email Id");		
			return false;
		  }
}

function search_valid()
{
	//alert("in");
	if(document.getElementById('search').value=='search' || document.getElementById('search').value=='')
	{
		alert("Please Enter Some Keyword");		
		//return false;
	}
	else
	{	
		//alert("in");
		document.myform.action='search.php';
		document.myform.submit();
	}
}


function dis()
{
	document.getElementById("state").innerHTML="<select style='width:150px' disabled><option>Please Select</option></select>";
	document.getElementById("city").innerHTML="<select style='width:150px' disabled><option>Please Select</option></select>";
}

var opt="";
function option(val)
{

	if(val==1)
	{
		document.getElementById('option_head').innerHTML="Cheque details(At par cheque)"
		document.getElementById('option_nm').innerHTML='Cheque Number';
		document.getElementById('option_val').innerHTML='<input type="text" name="c_d_m_num" id="c_d_m_num" onBlur="fnm_valid(\'0-9\',\'c_d_m_num\')" maxlength="10" />';
		opt="chk";
	}
	else
	{
		document.getElementById('option_head').innerHTML="Demand Draft details"
		document.getElementById('option_nm').innerHTML='Demand Draft Number';
		document.getElementById('option_val').innerHTML='<input type="text" name="c_d_m_num" id="c_d_m_num" onBlur="fnm_valid(\'0-9\',\'c_d_m_num\')" maxlength="10" />';
		opt="dd";
	}
	
}


function order_valid()
{
	//alert(opt);
	
	if(document.getElementById('fnm').value=='')
	{
		alert("Please Enter First Name");
		return false;
	}
	if(document.getElementById('mnm').value=='')
	{
		alert("Please Enter Middle Name");
		return false;
	}
	if(document.getElementById('lnm').value=='')
	{
		alert("Please Enter Last Name");
		return false;
	}
	if(document.getElementById('country').value=='')
	{
		alert("Please Select Country");
		return false;
	}
	if(document.getElementById('state_opt').value=='')
	{
		alert("Please Select State");
		return false;
	}
	if(document.getElementById('city_opt').value=='')
	{
		alert("Please Select City");
		return false;
	}
	if(document.getElementById('addr').value=='')
	{
		alert("Please Enter Address");
		return false;
	}
	if(document.getElementById('pin').value=='')
	{
		alert("Please Enter Pin/Zip Code");
		return false;
	}	
	if(document.getElementById('pin').value.length<=5)
	{
		alert("Invalid Pin/Zip Code");
		return false;		
	}
	if(document.getElementById('phone').value=='')
	{
		alert("Please Enter Landline Number");
		return false;
	}
	if(document.getElementById('phone').value.length<=8)
	{
		alert("Invalid Landline Number");
		return false;		
	}
	if(document.getElementById('mob').value=='')
	{
		alert("Please Enter Mobile Number");
		return false;
	}
	if(document.getElementById('mob').value.length<=8)
	{
		alert("Invalid Mobile Number");
		return false;		
	}	
	if(document.getElementById('email').value=='')
	{
		alert("Please Enter Email Address");
		return false;
	}
	if(document.getElementById('book').value=='')
	{
		alert("Please Select Book");
		return false;
	}
	
	if(opt=="dd")
	{
		if(document.getElementById('c_d_m_num').value=='')
		{
			alert("Please Enter Demand Draft Number");
			return false;
		}
		if(document.getElementById('c_d_m_num').value.length<=5)
		{
			alert("Invalid Demand Draft Number");
			return false;
		}		
	}
	else
	{
		if(document.getElementById('c_d_m_num').value=='')
		{
			alert("Please Enter Cheque Number");
			return false;
		}
		if(document.getElementById('c_d_m_num').value.length<=5)
		{
			alert("Invalid Cheque Number");
			return false;
		}		
	}
	if(document.getElementById('amt').value=='')
	{
		alert("Please Enter Amount");
		return false;
	}
	if(document.getElementById('bnk_nm').value=='')
	{
		alert("Please Enter Bank Name");
		return false;
	}
	if(document.getElementById('brn_nm').value=='')
	{
		alert("Please Enter Branch Name");
		return false;
	}
	if(document.getElementById('date1').value=='')
	{
		alert("Please Select Date");
		return false;
	}
	if(document.getElementById('capcha').value=='')
	{
		alert("Please Enter Image Text");
		return false;
	}
	if(document.getElementById('capcha').value!=document.getElementById('imgtxt').value)
	{
		alert("Invalid Image Text");
		return false;
	}
	
	
}


function fnm_valid(valid,id)
{	
	var strVal=document.getElementById(id).value;
	
	if(strVal!='')
	{
		var a1=document.getElementById(id);	
				
		if(!fnm_blockSpecialChar(valid,strVal))
		{		
			document.getElementById(id).value='';		
			a1.focus();			
			alert("Invalid Input");		
			return false;
		}	
	}
}

function fnm_blockSpecialChar(valid,strVal) 
{
	/*alert(valid);
	alert(strVal);*/
		
	if(valid=="a-zA-Z")
	{
		var pos=strVal.search(/[^a-zA-Zs]/i);
	}
	else if(valid=="a-zA-Z./()- ")
	{
		var pos=strVal.search(/[^a-zA-Z.()\-\/ s]/i);
	}
	else if(valid=="a-zA-Z0-9")
	{
		var pos=strVal.search(/[^a-zA-Z0-9s]/i);
	}
	else if(valid=="a-zA-Z0-9/()- ")
	{
		var pos=strVal.search(/[^a-zA-Z0-9\/()\- s]/i);
	}
	else if(valid=="a-zA-Z0-9./()- ")
	{
		var pos=strVal.search(/[^a-zA-Z0-9.\/()\- s]/i);
	}
	else if(valid=="0-9.")
	{
		var pos=strVal.search(/[^0-9.]/i);
	}
	else if(valid=="0-9")
	{
		var pos=strVal.search(/[^0-9]/i);
	}
	else if(valid=="*")
	{
		var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
		
		  if(pattern.test(strVal)) 
		  {		
			pos=-1;	
		  }
		  else
		  {
			pos=1;
		  }
	}
	//alert(pos);
	return (pos < 0);		
}




/*sir
function fnm_valid(validf,form_name,id)
{
	//alert(validf);
	//alert(id.form);	
	//alert(form_name.name);
	//var y = id.name;	
	//alert (form_name.y);
	//var a1=document.form_name.id;
	//var a=form_name.id;
	//var s = id;
	//alert(a);
	
	if(!fnm_blockSpecialChar(id,validf))
	{		
		alert(oFormObject = document.forms[id.name]);
		var xx = id.form;
		
		var yy = xx.id;
		alert(yy);
		yy.value='';		
		//a1.focus();			
		alert("Invalid Text");		
		return false;
	}	
}

function fnm_blockSpecialChar(strVal1,valid) 
{	
	//alert(strVal1.value);
	var strVal = strVal1.value;
	
	if(valid=="a-zA-Zs")
	{
		var pos=strVal.search(/[^a-zA-Zs]/i);
	}
	else if(valid=="a-zA-Z0-9s")
	{
		var pos=strVal.search(/[^a-zA-Z0-9s]/i);
	}
	else if(valid=="0-9")
	{
		var pos=strVal.search(/[^0-9\-]/i);
	}
	//alert(pos);
	return (pos < 0);		
}*/







<!--
//Disable right click script
//visit http://www.rainbow.arch.scriptmania.com/scripts/
var message="Sorry, right-click has been disabled";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// --> 























