
function showmenu(num)
{
 var divname="div"+num;
 document.getElementById(divname).style.display="block";
 return false;
}

function hiddmenu(num)
{

var divname="div"+num;
document.getElementById(divname).style.display="none";
return false;
}

function history1(id)
{

history.back();
}

 /*function search()
 {
	 var  searchtxt;
	 var cashchange=document.getElementById("searchtxt").value;
	 
		 cashchange=cashchange.toLowerCase();
	if(cashchange=="canon") 
	{
		document.location.href="canon.htm";
		document.getElementById("searchtxt").focus();

	}
	else if(cashchange=="sharp")
	{ 
		document.location.href="Sharp.htm";
		document.getElementById("searchtxt").focus();

	}
	else if(cashchange=="minolta")
	{
		document.location.href="minolta.htm";
		document.getElementById("searchtxt").focus();

	}
	else if(cashchange=="ricoh")
	{
		document.location.href="Ricoh.htm";
		document.getElementById("searchtxt").focus();

	}

	else if(cashchange=="toshiba")
	{ 
		document.location.href="Toshiba.htm";
		document.getElementById("searchtxt").focus();

	}
	else if(cashchange=="hp" ||document.cashchange=="konica"||cashchange=="panasonic"||cashchange=="samsung"||cashchange=="ibm"||cashchange=="oce"||cashchange=="olympia"||cashchange=="lexmark"||cashchange=="xerox")
	{ 
		document.location.href="Product Information.htm";
		document.getElementById("searchtxt").focus();

	}
	 else if(cashchange=="client")
	{ 
		document.location.href="print.htm";
		document.getElementById("searchtxt").focus();

	}
	 else if(cashchange=="director")
	{
		document.location.href="dir.htm";
		document.getElementById("searchtxt").focus();

	}
	else
	 {
		alert("Invalid Searching Word");
	 }

	  
 }

function  onkeyenter(event)
{			
	if(event.keyCode==13)
	{   var  searchtxt;
	 var cashchange=document.getElementById("searchtxt").value;
	 
		 cashchange=cashchange.toLowerCase();
		
		 if(cashchange=="canon")
		{ 
			document.form1.action="canon.htm";
			document.form1.submit;
		}
		else if(cashchange=="sharp")
		{ 
			document.form1.action="Sharp.htm";
			document.form1.submit;
			 
		}
		else if(cashchange=="minolta")
		{
			document.form1.action="minolta.htm";
			document.getElementById("searchtxt").focus();
		}
		else if(cashchange=="ricoh")
		{
			document.form1.action="Ricoh.htm";
			document.form1.submit;
		}
		else if(cashchange=="toshiba")
		{ 
			document.form1.action="Toshiba.htm";
			document.form1.submit;
		}
		else if(cashchange=="hp" ||cashchange=="konica"||cashchange=="panasonic"||cashchange=="samsung"||cashchange=="ibm"||cashchange=="oce"||cashchange=="olympia"||cashchange=="lexmark"||cashchange=="xerox")
		{ 
			document.form1.action="Product Information.htm";
		document.form1.submit;
		}
		else if(cashchange=="client")
		{ 
			document.form1.action="print.htm";
			document.form1.submit;
		}
		 else if(cashchange=="director")
		{
			document.form1.action="dir.htm";
			document.form1.submit;
		}
		else 
		{
			alert("Please Enter valid keyword!!");
			document.getElementById("searchtxt").focus();	
		}
	}
	
}*/

function menuover(obj)

{	
	obj.style.background="#e0dfe3";
	obj.style.color="#0080BD";
	obj.style.cursor="hand";
	
}


function menuout(obj)
{
	obj.style.background="image/Top-btn.jpg" ;
	obj.style="font-family:Arial;font-size:11px;font-weight:normal;color:000000;text-decoration:none;";

	//obj.style.weight="bold";
	//obj.style.cursor="hand";
	
}
 function tdcolor(num)
 {
	 
	var id="td"+num;
	 if(id=="td8")
	 {
	//var img="linkimg"+num
	//alert(document.getElementById(img));
	//obj.style.background="#fef303";
	document.getElementById(id).style.background="#FFAE5E";
	document.getElementById(id).style.color="#FFAE5E";
	//document.getElementById(img).src="images/bullets1.jpg";
	document.getElementById(id).style.cursor="hand";
	//document.getElementById(id).style.text-size="14px";
	document.getElementById(id).title = "Frequently Asked Question";
	 }
	 else
	 {

	//var img="linkimg"+num
	//alert(document.getElementById(img));
	//obj.style.background="#fef303";
	document.getElementById(id).style.background="#FFAE5E";
	document.getElementById(id).style.color="#FFFFFF";
	//document.getElementById(img).src="images/bullets1.jpg";
	document.getElementById(id).style.cursor="hand";
	//document.getElementById(id).style.text-size="14px";
	}
 }
 function tdcolorout(num)
 {
	var id="td"+num;
	
	if(id=="td7")
	{
	//var img="linkimg"+num
	document.getElementById(id).style.background="#cc9999";
	document.getElementById(id).style.color="#cc9999";
	//document.getElementById(img).src="images/bullets.jpg";
	document.getElementById(id).style.cursor="hand";
	}
	
	
	else if(id=="td8")
	{
	//var img="linkimg"+num
	document.getElementById(id).style.background="#9999cc";
	document.getElementById(id).style.color="#9999cc";
	//document.getElementById(img).src="images/bullets.jpg";
	document.getElementById(id).style.cursor="hand";
	}
else if(id=="td1")
	{
	//var img="linkimg"+num
	document.getElementById(id).style.background="#9999ff";
	document.getElementById(id).style.color="#9999ff";
	//document.getElementById(img).src="images/bullets.jpg";
	document.getElementById(id).style.cursor="hand";
	}
	
	else if(id=="td11")
	{
	//var img="linkimg"+num
	document.getElementById(id).style.background="#9999ff";
	document.getElementById(id).style.color="#9999ff";
	//document.getElementById(img).src="images/bullets.jpg";
	document.getElementById(id).style.cursor="hand";
	}
	else if(id=="td12")
	{
	//var img="linkimg"+num
	document.getElementById(id).style.background="#9999cc";
	document.getElementById(id).style.color="#9999cc";
	//document.getElementById(img).src="images/bullets.jpg";
	document.getElementById(id).style.cursor="hand";
	}
else
	{
	//var img="linkimg"+num
	document.getElementById(id).style.background="#C0C2D1";
	document.getElementById(id).style.color="#330000";
	//document.getElementById(img).src="images/bullets.jpg";
	document.getElementById(id).style.cursor="hand";
	}

 }

 function drpchange(num)
 {
	 var id=num;
	if(id=="31")
	 {
		alert("hello");
	 }
 }
 
 
 
 
function showans(num)
{
 var divname="div"+num;
 //alert(divname);
 if(document.getElementById(divname).style.display!="block")
 {
 //alert("hello");
 document.getElementById(divname).style.display="block";
 return false;
 }
 else
 {
 document.getElementById(divname).style.display="none";
 return false;
 }
 return false;
}




function SubmitApplication()
{
  if(document.getElementById("txtname").value=="")
   {
     alert("Please Enter Your Name.");
     document.getElementById("txtname").focus();
     return false;
   }
   else if(document.getElementById("txtfather").value=="")
   {
     alert("Please Enter Your Father Name.");
     document.getElementById("txtfather").focus();
     return false;
   }
   else if(document.getElementById("txtdob").value=="")
   {
     alert("Please Enter Your Date Of Birth.");
     document.getElementById("txtdob").focus();
     return false;
   }
   else if(document.getElementById("txtquali").value=="")
   {
     alert("Please Enter Your Qualification.");
     document.getElementById("txtquali").focus();
     return false;
   }
   else if(document.getElementById("txtmobile").value=="")
   {
     alert("Please Enter Your Mobile No.");
     document.getElementById("txtmobile").focus();
     return false;
   }
   else if(document.getElementById("txtemail").value=="")
   {
     alert("Please Enter Your Email ID.");
     document.getElementById("txtemail").focus();
     return false;
   }
   else if(document.getElementById("txtpermanentAdd").value=="")
   {
     alert("Please Enter Your Address.");
     document.getElementById("txtpermanentAdd").focus();
     return false;
    }
    /**/
   else if(document.getElementById("txtcorrAddress").value=="")
   {
     alert("Please Enter Your Address.");
     document.getElementById("txtcorrAddress").focus();
     return false;
   }
   else if(document.getElementById("txtCRexperience").value=="")
   {
     alert("Please Enter Your Clinical Research Experience.");
     document.getElementById("txtCRexperience").focus();
     return false;
   }
   else if(document.getElementById("txtreason").value=="")
   {
     alert("Please Enter Reason.");
     document.getElementById("txtreason").focus();
     return false;
    }
    /**/    
   else if(document.getElementById("txtnameofcandidate").value=="")
   {
     alert("Please Enter Your Name.");
     document.getElementById("txtnameofcandidate").focus();
     return false;
    }
   else if(document.getElementById("txtlocation").value=="")
   {
     alert("Please Enter Location.");
     document.getElementById("txtlocation").focus();
     return false;
    }
//  else if(document.getElementById("CheckBox1").checked==false)
//   {
//     alert("Please Accept Terms and Condition.");
//     document.getElementById("CheckBox1").focus();
//     return false;
//   }  
  else
   {
     alert("Your Application Has Been Sent.");
     //windows.close();
     return true;
   }  
  return false;
}

function SubmitDraftNo()
{
  if(document.getElementById("txtname").value=="")
   {
     alert("Please Enter Your Name.");
     document.getElementById("txtname").focus();
     return false;
   }
   else if(document.getElementById("txtmobile").value=="")
   {
     alert("Please Enter Your Mobile No.");
     document.getElementById("txtmobile").focus();
     return false;
   }
   else if(document.getElementById("userid").value=="")
   {
     alert("Please Enter Your UserId Which Is Given By Rejuvendus.");
     document.getElementById("userid").focus();
     return false;
   }
   
    else if(document.getElementById("draftno").value=="")
   {
     alert("Please Enter Draft No.");
     document.getElementById("draftno").focus();
     return false;
   }
   
   else if(document.getElementById("CheckBox1").checked==false)
   {
     alert("Please Accept Terms and Condition.");
     document.getElementById("CheckBox1").focus();
     return false;
   }  
  else
   {
     alert("Your Application Has Been Sent.");
     return true;
   }  
  return false;
}

function chkname(q)
{
    var theurl=document.form1.userid.value;

	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theurl) || document.getElementById(q).value=="")
	{
		return (true);
	}
	alert("Invalid E-mail Address! Please re-enter.")
	document.getElementById(q).value="";
	//return (false);
return false;

}


function EmailIDCheck(q) 
{
	var theurl=document.form1.txtemail.value;

	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theurl) || document.getElementById(q).value=="")
	{
		return (true);
	}
	alert("Invalid E-mail Address! Please re-enter.")
	document.getElementById(q).focus();
	return (false);
}


function mobileno()
{
alert("hi");

if((event.keyCode>=48 && event.keyCode<=57)||(event.keyCode==127)||(event.keyCode==8)||(event.keyCode==9))
{
return true;
}
else
{
return false;
}
}


function ClientSpecialchar()
{
	if((event.keyCode==189)||(event.keyCode>=97 && event.keyCode<=122)||(event.keyCode==32)||(event.keyCode>=65 && event.keyCode<=90))
	{
		return true;
	}
	else
	{
		return false;
	}
}


function copied()
{
  document.getElementById("txtnameofcandidate").value=document.getElementById("txtname").value;
  //alert(document.getElementById("txtnameofcandidate").value);
  return true;


}



                              
              
              
               
                
function submitquery()
{
  if(document.getElementById("txtname").value=="")
   {
     alert("Please Enter Your Name.");
     document.getElementById("txtname").focus();
     return false;
   }
      else if(document.getElementById("txtquali").value=="")
   {
     alert("Please Enter Your Qualification.");
     document.getElementById("txtquali").focus();
     return false;
   }
   else if(document.getElementById("txtmobile").value=="")
   {
     alert("Please Enter Your Mobile No.");
     document.getElementById("txtmobile").focus();
     return false;
   }
   else if(document.getElementById("txtemail").value=="")
   {
     alert("Please Enter Your Email ID.");
     document.getElementById("txtemail").focus();
     return false;
   }
   
   else if(document.getElementById("TextBox1").value=="")
   {
     alert("Please Enter Your Query.");
     document.getElementById("TextBox1").focus();
     return false;
    }

   else if(document.getElementById("txtlocation").value=="")
   {
     alert("Please Enter Location.");
     document.getElementById("txtlocation").focus();
     return false;
    } 
  else
   {
     alert("Your Application Has Been Sent.");
     //windows.close();
     return true;
   }  
  return false;
}
function submitfeedback()
 {
  if(document.getElementById("txtname").value=="")
   {
     alert("Please Enter Your Name.");
     document.getElementById("txtname").focus();
     return false;
   }
    
   else if(document.getElementById("txtemail").value=="")
   {
     alert("Please Enter Your Email ID.");
     document.getElementById("txtemail").focus();
     return false;
   }
   
   else if(document.getElementById("txtcomments").value=="")
   {
     alert("Please Enter Your Comments.");
     document.getElementById("txtcomments").focus();
     return false;
    }  
  else
   {
     alert("Your Application Has Been Sent.");
     //windows.close();
     return true;
   }  
  return false;
}