function trim(va){var st;st=va;while (st.substring(0,1)==' '){st=st.substring(1,st.length)}while (st.substr(st.length-1,1)==' '){st=st.substring(0,st.length-1);}return st;}

function showmail(e){var pop;if(pop!=null && !pop.closed){pop.close();}var URL="http://www.indiaeducation.net/common/pop/newsletter.htm";pop = window.open(URL,"subscribe","width="+576+",height="+528+",scrollbars=no,menubar=no,status=no,toolbar=no,resizable=no");pop.focus()}

function showmailOLD(e){indiaeducationtopgetnumbers();x=findPosXmail(e);y=findPosYmail(e);document.getElementById("indiaeducationtopdiv").style["visibility"]="visible";document.getElementById("indiaeducationtopdiv").style["display"]="block";document.getElementById("indiaeducationtopdiv").style["position"]="absolute";document.getElementById("indiaeducationtopdiv").style["left"]=x+"px";document.getElementById("indiaeducationtopdiv").style["top"]=y+"px";}


function ssmail(e){document.getElementById("indiaeducationtopdiv").style["visibility"]="hidden";document.getElementById("indiaeducationtopdiv").style["display"]="none";}function findPosXmail(objx){var curleft = 0;objx=document.getElementById(objx);if (objx.offsetParent){while (1) {curleft += objx.offsetLeft;if (!objx.offsetParent){break;}objx = objx.offsetParent;}}else if (objx.x) {curleft += objx.x;return curleft;}return curleft;}function findPosYmail(objx){var curTop = 20;objx=document.getElementById(objx);if (objx.offsetParent){while (1){curTop += objx.offsetTop;if (!objx.offsetParent){break;}objx = objx.offsetParent;}} else if (objx.x){curTop += objx.x;return curTop;}return curTop;}var FirstNo=get_randomfirst();var SecondNo=get_randomsecond();var mynoone = new Array(8);mynoone[0] = 1;mynoone[1] = 2;mynoone[2] = 3;mynoone[3] = 4;mynoone[4] = 5;mynoone[5] = 6;mynoone[6] = 7;mynoone[7] = 8;mynoone[8] = 9;var mynosecond = new Array(8);mynosecond[0] = 1;mynosecond[1] = 2;mynosecond[2] = 3;mynosecond[3] = 4;mynosecond[4] = 5;mynosecond[5] = 6;mynosecond[6] = 7;mynosecond[7] = 8;mynosecond[8] = 9;var ranNum1;var ranNum2;var totno;function get_randomfirst(){ranNum1= Math.floor(Math.random()*9);return ranNum1;}function get_randomsecond(){ranNum2= Math.floor(Math.random()*9);return ranNum2;}function indiaeducationtopgetnumbers(){
document.getElementById("indiaeducationtopdiv").style.zIndex="1";totno=parseInt(mynoone[FirstNo])+parseInt(mynosecond[SecondNo]);document.getElementById('indiaeducationtopdivno').innerHTML="<b><font color='#990000' style='font-size:15px'>"+mynoone[FirstNo]+" + "+mynosecond[SecondNo]+" = </font></b>";return totno;}function nnevalidatemail(){if (document.frmmaillist.name.value==""){alert("Please enter you name");document.frmmaillist.name.focus();return false;}
if (!trim(document.frmmaillist.nneemail.value)==""){var x = document.frmmaillist.nneemail.value;var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if (!filter.test(x)){alert("Enter a valid e-mail ID");document.frmmaillist.nneemail.focus();document.frmmaillist.nneemail.select();return false;}}if (trim(document.frmmaillist.nneemail.value)!=trim(document.frmmaillist.nnevemail.value)){alert("Verify your e-mail id");	document.frmmaillist.nnevemail.focus();return false;}if (document.frmmaillist.indiaeducationtopgetsumtxt.value==""){alert("Please Enter Sum of Numbers to submit your form. This is to avoid automated queries.");document.frmmaillist.indiaeducationtopgetsumtxt.focus();return false;}var getsum= document.getElementById('indiaeducationtopgetsumtxt').value;if (totno!=getsum){alert('Entered Number is not correct. The correct answer is "'+totno+'". Enter this number to submit the form.');return false;}
//document.frmmaillist.action="mailing.asp";document.frmmaillist.method="post";document.frmmaillist.submit();
return true;}
