function newwin()
{
if (self != top) 
top.location.href="http://www.indiaresult.com";
}

function ChangeState()
	{
		if(document.frmChangeState.StateName.value != "Select State")
			{
				location.href=document.frmChangeState.StateName.value 
			}
	}



function validateEducation()
{
	
	var sUserQueryString = String(document.frmEducation.EducationDirectory.value);
	var iSpaceCount = 0;

	if (sUserQueryString.length == 0)
	{
		alert('Please Enter Value in Search');
		document.frmEducation.EducationDirectory.value = "";
		document.frmEducation.EducationDirectory.focus();
		document.frmEducation.EducationDirectory.select();
		return false;
	}
	
	if (sUserQueryString != "")
	{
		for (i=0;i<sUserQueryString.length;i++)
		{
			var strTemp = sUserQueryString.charCodeAt(i);
			if (strTemp == 32)
			{
				iSpaceCount++;
				if (iSpaceCount == sUserQueryString.length)
				{
					alert('Spaces is not allowed in Search');
					document.frmEducation.EducationDirectory.value = "";
					document.frmEducation.EducationDirectory.focus();
					document.frmEducation.EducationDirectory.select();
					return false;
				}
			}
		}
	}
	return true;
	}
	

