try {
 document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}



		function mastervalidate(frm2)

		{
			if(frm1.SearchText.value=="")
			{
				alert("Please Enter Your Search Keyword");
				frm1.SearchText.focus();
				return false;
			}
		
		}


/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

var clickmessage="Copyright Images!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()




/***********************************************
* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}

//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"



		


		function mastervalidate(frm1)

		{
			
			if(frm1.UName.value=="")
			{
				alert("Please Enter Your Full Name");
				frm1.UName.focus();
				return false;
			}
							
			if(frm1.Password.value=="")
			{
				alert("Please Enter Your Email Address");
				frm1.Password.focus();
				return false;
			}
		
		}
		
		
		
		function mastervalidate(frm)

		{
			
			if(frm.FName.value=="")
			{
				alert("Please Enter Your Full Name");
				frm.FName.focus();
				return false;
			}
							
			if(frm.Email.value=="")
			{
				alert("Please Enter Your Email Address");
				frm.Email.focus();
				return false;
			}
			var Email=frm.Email.value;
			
			if (Email.indexOf('@', 0) == -1 || Email.indexOf('.', 0) == -1)
			{ 
			alert("Please Enter A Valid Email Address");
			frm.Email.value=""
			frm.Email.focus();
			return false
			}
			
			if(frm.Phone.value=="")
			{
				alert("Please Enter Your Phone Number");
				frm.Phone.focus();
				return false;
			}
				
			if(frm.City.value=="")
			{
				alert("Please Enter Your City Name");
				frm.City.focus();
				return false;
			}
			
			if(frm.Requirement.value=="Please select one")
			{
				alert("Please Select Your Country");
				frm.Requirement.focus();
				return false;
			}

			
			if(frm.Details.value=="")
			{
				alert("Please Enter Your Comments");
				frm.Details.focus();
				return false;
			}
		
		}


