// Id: index.js 2009-06-12 nitink
function MenuS(obj){var el = document.getElementById(obj);el.style.display = "block";}
function MenuR(obj){var el = document.getElementById(obj);el.style.display = "none";}

function getf(Form){if(Form.email.value==''){Form.email.value='Your e-mail here';Form.email.className="i1";}}
function getblank(Form){if(Form.email.value=='Your e-mail here'){Form.email.value='';Form.email.className="i3";}}
function getf1(Form){if(Form.nl_name.value==''){Form.nl_name.value='Your name here';Form.nl_name.className="i1";}}
function getblank1(Form){if(Form.nl_name.value=='Your name here'){Form.nl_name.value='';Form.nl_name.className="i3";}}

function validateit(theForm){
if (theForm.nl_name.value=='Your name here')
{alert("Please fill the name");theForm.nl_name.focus();return (false);}
if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(theForm.email.value)))
{alert("Kindly enter a valid E-mailID!\nEx:abc@yahoo.com\n      xyz@gmail.com");theForm.email.focus();return (false);}}

function openchild_nl(thisurl){
browserName = navigator.appName;browserVer = parseInt(navigator.appVersion);
condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4) ) ||  ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 2) ) ) ;
if (condition == true)CanAnimate = true;
else CanAnimate = false;
var nl_name = document.theForm.nl_name.value;
var email_val = document.theForm.email.value;var from_site_val = document.theForm.from_site.value;var is_window_val = document.theForm.is_window.value;var org_referer = document.theForm.org_referer.value;var is_im = document.theForm.is_im.value;
var thisurl_string = thisurl + "?email=" + email_val + "&from_site=" + from_site_val + "&is_window=" + is_window_val + "&org_referer=" + org_referer + "&is_im=" + is_im + "&nl_name=" + nl_name;
if ( CanAnimate ){msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=550,height=340,top=0,left=0');
msgWindow.focus();msgWindow.location.href = thisurl_string;}else {msgWindow=window.open( thisurl_string,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=550,height=340,top=0,left=0');}}
