function carfieldcheck()
{
	if (document.form1.Position.selectedIndex<=0)
	{
		alert("Select The Position");
		document.form1.Position.focus();
		return false;
	}
	if (document.form1.fname.value <= 0)
	{
		alert ('Type your First Name');
		document.form1.fname.focus();
		return false;	
	}
	if (document.form1.lname.value <= 0)	
	{
		alert ('Type your Last Name');
		document.form1.lname.focus();
		return false;	
	}
	if (document.form1.city.value <= 0)	
	{
		alert ('Type your City');
		document.form1.city.focus();
		return false;	
	}
	if (document.form1.email.value <= 0)	
	{
		alert ('Type your Email ID');
		document.form1.email.focus();
		return false;	
	}
	if (document.form1.email.value.indexOf('@',0)==-1 || document.form1.email.value.indexOf('.',0)==-1)
	{
	alert('Please enter a valid email address');
	document.form1.email.focus();
	return false;
	}
	if (document.form1.phone.value <= 0)
	{
		alert ('Enter phone number');
		document.form1.phone.focus();
		return false;	
	}

	return true;
}

function checktelnumber()
{
	var abc=document.form1.phone.value;
	for(var i=0; i<=abc.length;i++)
	{
		if( ( abc.substring(i,(i+1))>=0 &&  abc.substring(i,(i+1))<=9) || abc.substring(i,(i+1))=='+' || abc.substring(i,(i+1))=='(' || abc.substring(i,(i+1))==')' ||  abc.substring(i,(i+1))==' ' || abc.substring(i,(i+1))=='-');
		else
		{
			alert("Please Enter Valid Phone Number");
			i=abc.length+1;
			document.form1.phone.select();
			document.form1.phone.focus();
			//return false;
		}
	}
	//return true;
}


function openupdate()
{
	window.open('content/update_more.htm','update','status=yes,height=500,width=780,left=10,top=10,scrollbars=yes');
}

function openmahabudget()
{
	window.open('content/statebudget.htm','mahabudget','status=yes,height=500,width=780,left=10,top=10,scrollbars=yes');
}

function opendeadlines()
{
	window.open('content/deadlines_more.htm','deadlines','status=yes,height=500,width=710,left=10,top=10,scrollbars=yes');
}

function check()
{
		if (document.frmreg.name.value <= 0)
	{
		alert("Please Enter the Name");
		document.frmreg.name.focus();
		document.frmreg.name.select();
		return false;
	}
		if (document.frmreg.email.value <= 0)	
	{
		alert ('Type your Email ID');
		document.frmreg.email.focus();
		return false;	
	}
	if (document.frmreg.email.value.indexOf('@',0)==-1 || document.frmreg.email.value.indexOf('.',0)==-1)
	{
	alert('Please enter a valid email address');
	document.frmreg.email.focus();
	return false;
	}
	return true;
}