<!--
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;
		   }
		}


function checkSearch1() {	
    if (document.searchForm1.search.value=="")
       {
                alert("Kindly enter your search string");
                document.searchForm1.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.searchForm1.search.value.length != 0) {
		   	   if (document.searchForm1.search.value.length <= 2) {
				   alert("Search string must contain at least 3 characters.");
				   document.searchForm1.search.focus();
				   return false;	
			   }
		   }
		   else {
				return true;
		   }
}


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);
	}
}


function getblank(this1)  {
	if (this1.value = "Your e-mail here") {
		this1.value = "";
	}
    return true;	
}


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 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 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=550,height=240,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=240,top=0,left=0');
	}
}



function convert()
{
var loc = document.location.toString();
loc = loc.substring(7,loc.length);

if (document.trans.langpair.selectedIndex != 0) 
{
window.open('http://translate.google.com/translate_c?langpair=' + document.trans.langpair.value + "&u=" + document.location,"new_trans");
return false;
}
else{
	alert('Kindly select a language.');
	document.trans.langpair.focus();
return false;
}
}

function checkblankb2b() {
if (document.form2.search.value.length == 0)
{
	alert('Kindly enter your search string');
	document.form2.search.focus();
	return false;
}

if (document.form2.search.value.length != 0) {
	   if (document.form2.search.value.length <= 2) {
		   alert("Search string must contain at least 3 characters.");
		   document.form2.search.focus();
		   return false;	
	   }
}
else {
	return true;
}

}

function convert1()
{
var loc = document.location.toString();
loc = loc.substring(7,loc.length);
if (document.trans1.langpair.selectedIndex != 0) 
{
window.open('http://translate.google.com/translate_c?langpair=' + document.trans1.langpair.value + "&u=" + document.location,"new_trans");
return false;
}
else{
	alert('Kindly select a language.');
	document.trans1.langpair.focus();
return false;
}
}

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');
}
}

//-->
