
<!-- HIDING FROM OTHER BROWSERS
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set(){

if ( (document.newsletter.S_email.value == "") )
{
    alert("Please fill in all the compulsory fields");
    return (false);
}


if(document.newsletter.S_email.value.indexOf(" ") >= 0)
{
	alert("Please enter your email-id without any white space character.");
	document.newsletter.S_email.focus();
	return (false);
}
if ( (document.newsletter.S_email.value.indexOf("@") == -1) || (document.newsletter.S_email.value.indexOf(".") == -1) )
{
	alert("Please enter a valid email-id"); 
	document.newsletter.S_email.focus();
	return (false);
}


BeforeAtRate = document.newsletter.S_email.value.substring(0,document.newsletter.S_email.value.indexOf("@"));
AfterAtRate = document.newsletter.S_email.value.substring(document.newsletter.S_email.value.indexOf("@")+1,document.newsletter.S_email.value.length);

if (AfterAtRate.indexOf(".") == -1)
{
	alert("Please enter a valid email-id"); 
	document.newsletter.S_email.focus();
	return (false);
}

middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."))
last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length)

if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
{
	alert("Please enter a valid email-id"); 
	document.newsletter.S_email.focus();
	return (false);
}


newCookie +="|"+document.newsletter.S_email.value;
newCookie +="|";
setCookie("newImeshID",newCookie);
return true;
}
function get(){
if( (cookie = getCookie("newImeshID")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 1){
		    
		if (document.newsletter.S_email.value.length == 0)    document.newsletter.S_email.value = Values[0];}
}
return true;
}
function setCookie(name, value){
if (value.length > 0)
 document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString()+";"
}
function getCookie(Name) {
          var search = Name + "="
          if (document.cookie.length > 0) { // if there are any cookies
                    offset = document.cookie.indexOf(search) 
                    if (offset != -1) { // if cookie exists 
                              offset += search.length 
                              // set index of beginning of value
                              end = document.cookie.indexOf(";", offset) 
                              // set index of end of cookie value
                              if (end == -1) end = document.cookie.length
                              return unescape(document.cookie.substring(offset, end))
                    } 
          }
return "";
}


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;function openchild(thisurl){
if ( CanAnimate ){ 
        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,width=300,height=110,left=250,top=0');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=yes,width=200,height=110');
}       }


function getit(){
if (document.menuForm.url.selectedIndex != 0) parent.location=document.menuForm.url.options[document.menuForm.url.selectedIndex].value;
}


function validateit(theForm) {
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(theForm.email.value)))
	{
		alert("Invalid Email ID. Kindly enter the correct ID.");
		theForm.email.focus();
		return (false);
	}

}
// STOP HIDING FROM OTHER BROWSERS -->

