function addBookmark(title,url) {
	if (window.sidebar) {
		window.sidebar.addPanel("India News Online", url,"");
	}
	else if( document.all ) {
		window.external.AddFavorite( url, "India News Online");
	}
	else if(navigator.appName == 'Netscape') {
		alert('Press (CTRL-D) to bookmark this page.');
	}
	return false;
}


function addBookmark_old(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel("India News Online", url,"");
	}
	else if( document.all ) {
		window.external.AddFavorite( url, "India News Online");
	}
	else if( window.opera && window.print ) {
		return true;
	}
}
function checkSearch() {	
    if (document.searchForm.search.value=="")
       {
                alert("Kindly enter your search string");
                document.searchForm.search.focus();
                return false;
           }
		 /*  if (document.searchForm.searchby[0].checked == false && document.searchForm.searchby[1].checked == false && document.searchForm.searchby[2].checked == false ) {
				alert("Kindly select Company Name or Keywords.");
                document.searchForm.searchby[0].focus();
                return false;
		   }*/
		   if (document.searchForm.search.value.length != 0) {
		   	   if (document.searchForm.search.value.length <= 2) {
				   alert("Search string must contain at least 3 characters.");
				   document.searchForm.search.focus();
				   return false;	
			   }
		   }
		   else {
				return true;
		   }
		}


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=yes,scrollbars=yes,menubar=no,resizable=yes,width=635,height=260,left=0,top=0');
        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,left=0,top=0');
}
}