function bot_menu()
{
document.write('<a href="index.htm" class="bottomlink">HOME</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="aboutus.htm" class="bottomlink">ABOUT US</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="services.htm" class="bottomlink">SERVICES</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="softdeve.htm" class="bottomlink">SOFTWARE DEVELOPMENT</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="ourclients.htm" class="bottomlink">OUR CLIENTS</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="feedback.htm" class="bottomlink">FEEDBACK</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="contactus.htm" class="bottomlink">CONTACT US </a>');	
}
function developedby()
{
	var d=new Date();
    var TODAY = d.getFullYear();
	TODAY1=TODAY + 1;
	document.write('Copyrights&nbsp;&copy;&nbsp;');
	document.write(TODAY);
	document.write('&nbsp;-&nbsp;');
	document.write(TODAY1);
	document.write('&nbsp;Infotech&nbsp;Consultants.&nbsp;All&nbsp;rights&nbsp;reserved.&nbsp;Designed&nbsp;&amp;&nbsp;Developed&nbsp;by&nbsp;<a href="http://infotechconsultants.co.in" target="_blank" class="bottomlinks">Infotech&nbsp;Consultants,&nbsp;Dehradun</a>');	
}

/********************** buttons link *************************************************/
function button1()
{
  document.write('<table width="524" border="0" align="right" cellpadding="0" cellspacing="0"><tbody><tr><td width="4" bgcolor="#FFFFFF">&nbsp;</td><td width="98"><a href="aboutus.htm"><img src="./images/about_us.jpg" width="98" height="27" border="0" name="image1" id="image1" alt="About Us" /></a></td><td width="100"><a href="services.htm"><img src="./images/it_services.jpg" width="100" height="27" alt="web & softwares development" name="image2" id="image2" border="0" /></a</td><td width="117"><a href="ourclients.htm"><img src="./images/our_processes.jpg" width="117" height="27" alt="ic" name="image3" id="image3" border="0" /></a></td><td width="104"><a href="feedback.htm"><img src="./images/case_studies.jpg" alt="infotech consultants" width="104" height="27" border="0" /></a></td><td width="101"><a href="contactus.htm"><img src="./images/contact_us.jpg" alt="Contact Us" width="101" height="27" border="0" /></a></td></tr><tr valign="bottom"><td height="56" colspan="6"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="154">&nbsp;</td><td width="594" align="right"><img src="./images/home1.jpg" width="11" height="10" /><a href="index.htm" class="bottomlink"> Home</a>&nbsp;&nbsp;</td></tr><tr><td width="154">&nbsp;</td><td width="594">&nbsp;</td></tr></tbody></table></td></tr></tbody></table>');	
}

function button2()
{
  document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="750" background="images/bt_bg_mid.jpg" class="link_bg"><table id="Table_01" width="750" height="27" border="0" cellpadding="0" cellspacing="0"><tr><td><a href="webdeve.htm"><img src="images/web_dev.jpg" border="0" width="135" height="27" alt="Website Development" /></a></td><td><a href="softdeve.htm"><img src="images/soft_dev.jpg" border="0" width="157" height="27" alt="Customize Software Development" /></a></td><td><a href="hosting.htm"><img src="images/web_hosting.jpg" border="0" width="117" height="27" alt="web hosting" /></a></td><td><a href="domainreg.htm" ><img src="images/domain_reg.jpg" border="0" width="137" height="27" alt="Domain Registration" /></a></td><td><a href="ittraining.htm"><img src="images/it_training.jpg" border="0" width="101" height="27" alt="Training Program" /></a></td><td><a href="iitp.htm"><img src="images/iitp.jpg" border="0" width="103" height="27" alt="Training" /></a></td></tr></table></td><td width="224" background="images/bt_bg_mid.jpg" class="link_bg"><a href="http://info185687.supersite.myorderbox.com" target="_blank"><img src="images/bt_domain_chk.jpg" border="0" width="101" height="27" /></a></td></tr></tbody></table>');	
}

/***************************** End *************************************************************/
function validateForm(){

  var email=document.form1.emailId.value;
  //alert(email);
 if(document.form1.name.value=="")
 {
   alert('Enter The Name');
   document.form1.name.focus();
   return false;
 } 
 else
 if(email=="")
 {
  alert ('Enter the Email');
  document.form1.emailId.focus();
  return false;
 }
 else 
 if(email!="")
  {
	if(isEmail(email) == false )
				{
				alert("Invalid Email Id.");
				document.form1.emailId.value = "";
				document.form1.emailId.focus();
				return false; 
				}
  }	

if(document.form1.designation.value=="")
{
  alert('Enter the Designation');
  document.form1.designation.focus();
  return false;
}

if(document.form1.organization.value=="")
{
  alert('Enter the Organization');
  document.form1.organization.focus();
  return false;
}

if(document.form1.phone.value=="")
{
  alert('Enter the Phone No');
  document.form1.phone.focus();
  return false;
}

if(document.form1.city.value=="")
{
  alert('Enter the City');
  document.form1.city.focus();
  return false;
}

if(document.form1.state.value=="")
{
  alert('Enter the State');
  document.form1.state.focus();
  return false;
}

if(document.form1.country.value=="")
{
  alert('Enter the Country');
  document.form1.country.focus();
  return false;
}

if(document.form1.aboutUs.value==0)
{
  alert('Please Specify How to know you');
  document.form1.aboutUs.focus();
  return false;
}

if(document.form1.subject.value==0)
{
  alert('Enter the Subject');
  document.form1.subject.focus();
  return false;
}
if(document.form1.message.value=="")
{
  alert('Enter the Message');
  document.form1.message.focus();
  return false;
}

		
}	
/**************************** validation *******************************************************/

function frm_valid()
		{
		
		var pos1=document.frmmail_login.imapuser.value.indexOf('.');
   	    var pos2=document.frmmail_login.imapuser.value.indexOf('@');
		
		if (document.frmmail_login.imapuser.value=="")	
			{
				alert("e-mail cannot be left blank.");
				document.frmmail_login.imapuser.focus();
				return false;
			}
		if(document.frmmail_login.imapuser.value != "")
            {
			  if(isEmail(document.frmmail_login.imapuser.value) == false )
				{
				alert("Invalid Email Id.");
				document.frmmail_login.imapuser.value = "";
				document.frmmail_login.imapuser.focus();
				return false; 
				}					
			}
		if(document.frmmail_login.pass.value == "")
		{
			alert("Password Can Not left blank ! Try again");
			document.frmmail_login.pass.focus();
			return false;
		}
		}

function validate_ittraining()
{

 if(document.form1.name.value=="")
 {
   alert('Enter The Name');
   document.form1.name.focus();
   return false;
 } 

if(document.form1.fname.value=="")
{
  alert('Enter Father Name');
  document.form1.fname.focus();
  return false;
}

if(document.form1.gender.value==0)
{
  alert('Enter the Gender');
  document.form1.gender.focus();
  return false;
}

if(document.form1.dob.value=="")
{
  alert('Enter the Date of Birth');
  document.form1.dob.focus();
  return false;
}

if(document.form1.cadd.value=="")
{
  alert('Enter the Contact Address');
  document.form1.cadd.focus();
  return false;
}

if(document.form1.padd.value=="")
{
  alert('Enter the Permanent Address');
  document.form1.padd.focus();
  return false;
}

if(document.form1.cno.value=="")
{
  alert('Enter the Contact No');
  document.form1.cno.focus();
  return false;
}

if(document.form1.email.value=="")
{
  alert('Please Enter Your Email Id');
  document.form1.email.focus();
  return false;
}

if(document.form1.email.value != "")
   {
	  if(isEmail(document.form1.email.value) == false )
		{
			alert("Invalid Email Id.");
			document.form1.email.value = "";
			document.form1.email.focus();
			return false; 
		}					
	}	

if(document.form1.classtime.value==0)
{
  alert('Plese refer to your Class Time');
  document.form1.classtime.focus();
  return false;
}
if(document.form1.edu_quali.value=="")
{
  alert('Enter Your Qualification');
  document.form1.edu_quali.focus();
  return false;
}
if(document.form1.tech_quali.value=="")
{
  alert('Enter Your Technical Qualification');
  document.form1.tech_quali.focus();
  return false;
}
if(document.form1.work_exp.value=="")
{
  alert('Enter Your Working Experience');
  document.form1.work_exp.focus();
  return false;
}
if(document.form1.course.value=="")
{
  alert('Enter Your course details');
  document.form1.course.focus();
  return false;
}
}
	
	function isEmail(email) {
    invalidChars = " ~\'^\`\"*+=\\|][(){}$&!#%/:,;";
    // Check for invalid characters as defined above
    for (i=0; i<invalidChars.length; i++) {
        badChar = invalidChars.charAt(i);
        if (email.indexOf(badChar,0) > -1) {
            return false;
        }
    }
    lengthOfEmail = email.length;
    if ((email.charAt(lengthOfEmail - 1) == ".") || (email.charAt(lengthOfEmail - 2) == ".")) {
        return false;
    }
    Pos = email.indexOf("@",1);
    if (email.charAt(Pos + 1) == ".") {
        return false;
    }
    while ((Pos < lengthOfEmail) && ( Pos != -1)) {
        Pos = email.indexOf(".",Pos);
        if (email.charAt(Pos + 1) == ".") {
            return false;
        }
        if (Pos != -1) {
            Pos++;
        }
    }
    // There must be at least one @ symbol
    atPos = email.indexOf("@",1);
    if (atPos == -1) {
        return false;
    }
    // But only ONE @ symbol
    if (email.indexOf("@",atPos+1) != -1) {
        return false;
    }
    // Also check for at least one period after the @ symbol
    periodPos = email.indexOf(".",atPos);
    if (periodPos == -1) {
        return false;
    }
    if (periodPos+3 > email.length) {
        return false;
    }
    return true;
}

/*********************************** end ******************************************************/