
function validate() {
				if (document.forms[0].rank.value == "") 
			{
				alert('Rank cannot be left blank');
				document.forms[0].rank.focus();
				return false;
			}
				if (parseInt(document.forms[0].rank.value) < 1) 
			{
				alert('Rank cannot be 0 or less');
				document.forms[0].rank.focus();
				return false;
			}
				if (parseInt(document.forms[0].rank.value) > 200000) 
			{
				alert('Rank cannot be greater than 200000');
				document.forms[0].rank.focus();
				return false;
			}
		
				if (parseInt(document.forms[0].rank.value) != document.forms[0].rank.value) 
			{
				alert('Please Enter Rank Properly in numbers only');
				document.forms[0].rank.focus();
				return false;
			}
				else
			{
				return true;
			}
}

function showbranches(str)
{


if (str=="")
  {
  document.getElementById("listb").innerHTML="";
alert("Please select a college or all");
return ;
  }


if (str=="MAIT")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>mae</option><option >eee</option>";
return ;
  
  }
if (str=="MSIT")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>eee</option>";
return ;  
  }
if (str=="AIT")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option>";
  return ;
  }
if (str=="NIEC")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>mae</option><option>eee</option>";
  return ;
  }
if (str=="HMRITM")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>mae</option><option>eee</option>";
  return ;
  }
if (str=="IGIT")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>mae</option>";
  return ;
  }
if (str=="USIT")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option>";
  return ;
  }
if (str=="BPIT")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>eee</option>";
  return ;
  }
if (str=="ASET")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>mae</option><option>ice</option>";
  return ;
  }
if (str=="BVP")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>ice</option><option>eee</option>";
  return ;
  }
if (str=="GPMCE")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option >it</option><option>mae</option>";
  return ;
  }
if (str=="GTBIT")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>eee</option>";
  return ;
  }
if (str=="ANSAL")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option >ece</option><option>it</option><option>eee</option>";
  return ;
  }
if (str=="NPTI")
  {
  document.getElementById("listb").innerHTML="<option>pe</option>";
  return true;
  }
if (str=="USCT")
  {
  document.getElementById("listb").innerHTML="<option>ce</option>";
  return ;
  }
if (str=="CBPGEC")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>it</option><option >cv</option><option>env</option>";
  return ;
  }
if (str=="DITE")
  {
  document.getElementById("listb").innerHTML="<option>te</option>";
  return true;
  }
if (str=="all")
  {
  document.getElementById("listb").innerHTML="<option>all</option><option>cse</option><option>ece</option><option>it</option><option>mae</option><option>eee</option>";
  return ;
  }

}


