function ToggleAlert(item)
{var myTabs=new Array("DIVSEO","DIVDESIGN","DIVDEVEPLOMENT","DIVINTERNET","DIVECOMM");for(i=0;i<myTabs.length;i++){{eval("document.getElementById('"+myTabs[i]+"1"+"').style.backgroundColor='#464545'");eval("document.getElementById('"+myTabs[i]+"').style.display='none'");}
if(myTabs[i]=item){eval("document.getElementById('"+myTabs[i]+"1"+"').style.backgroundColor='#000000'");eval("document.getElementById('"+myTabs[i]+"').style.display='block'");}}}
function echeck(str){var at="@"
var dot="."
var lat=str.indexOf(at)
var lstr=str.length
var ldot=str.indexOf(dot)
if(str.indexOf(at)==-1){alert("Invalid E-mail ID")
return false}
if(str.indexOf(at)==-1||str.indexOf(at)==0||str.indexOf(at)==lstr){alert("Invalid E-mail ID")
return false}
if(str.indexOf(dot)==-1||str.indexOf(dot)==0||str.indexOf(dot)==lstr){alert("Invalid E-mail ID")
return false}
if(str.indexOf(at,(lat+1))!=-1){alert("Invalid E-mail ID")
return false}
if(str.substring(lat-1,lat)==dot||str.substring(lat+1,lat+2)==dot){alert("Invalid E-mail ID")
return false}
if(str.indexOf(dot,(lat+2))==-1){alert("Invalid E-mail ID")
return false}
if(str.indexOf(" ")!=-1){alert("Invalid E-mail ID")
return false}
return true}
function ValidateName(){var namelID=document.frmSample.name
if((nameID.value=="")||(nameID.value==" ")){nameID.focus()
return false}
if(echeckq(nameID.value)==false){nameID.value=""
nameID.focus()
return false}
return true}
function ValidateEmail(){var emailID=document.frmSample.Email
var emai=""
if((emailID.value==null)||(emailID.value=="")){emailID.focus()
return false}
if(echeck(emailID.value)==false){emailID.value=""
emailID.focus()
return false}
return true}
function expand(){document.getElementById("list").style.display="block";}
function collapse(){document.getElementById("list").style.display="none";}
