//----------------------------------------------------------------
// JavaScript Document of Telangana University, Nizambad
// Document Prepared by Srinivasa Infotech 
// Last updated on May, 2010
// 
//----------------------------------------------------------------


/* Tab Functions: starts here */
function tabOver(srcId){
		document.getElementById(srcId).className='tabActive';
}
	
function tabOut(srcId){
		document.getElementById(srcId).className='tabInactive';
}

/* Left Navigation Function: starts here */
function leftOver(srcId){
		document.getElementById(srcId).className='leftMenuActive';
}
	
function leftOut(srcId){
		document.getElementById(srcId).className='leftMenu';
}

/* Quick Contact Form validation: starts here */

function check(){
		allowSubmit= true;
		if(document.getElementById('userName').value=='')
		{
			alert("Enter your Full Name");
			return;
		}
			if (document.getElementById('phNo').value=='') 
			{
				alert("Enter valid Phone Number");
				return;
			}
			
			if (document.getElementById('cellNo').value=='') 
			{
				alert("Enter valid Mobile Number");
				return;
			}
			
		if (document.getElementById('eMail').value=='') 
		{
			alert("Enter E-mail Address");
			return;
		}
		if(document.getElementById('eMail').value.indexOf("@",0)<0)
		{			
			alert("Please Enter a Valid Email Address");
			return;
	  } 
			if(document.getElementById('eMail').value.charAt((frm.eMail.value.length)-1)=="@")
		  {			
					alert("You must enter valid Email Address");
	    return;
					allowSubmit = false;
		  } 	 
				if (allowSubmit){
					frm.submit();
				 window.open('popup.html','','width=500, height=328,scroll=no,status=no')
			}
		}
		
	// Quick Contact Form validation: ends here
