function validateit(theForm)
{

if( (theForm.email.value == "") || (theForm.email.value.indexOf(" ") >= 0) )
	{
		alert("Invalid E-mailID! Kindly enter the correct E-mailId.");
		theForm.email.focus();
		return (false);
	}
if (theForm.email.value.indexOf("@") == -1)
	{
		alert("Invalid E-mailID! Kindly enter the correct E-mailId.");
		theForm.email.focus();
		return (false);
	}

	BeforeAtRate = theForm.email.value.slice(0,theForm.email.value.indexOf("@"))
	AfterAtRate = theForm.email.value.substr(theForm.email.value.indexOf("@") + 1)

if (AfterAtRate.indexOf(".") == -1)
	{
		alert("Invalid E-mailID! Kindly enter the correct E-mailId.");
		theForm.email.focus();
		return (false);
	}

	middle = AfterAtRate.slice(0, AfterAtRate.indexOf("."))
	last = AfterAtRate.substr(AfterAtRate.indexOf(".") + 1)

if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
	{
		alert("Invalid E-mailID! Kindly enter the correct E-mailId.");
		theForm.email.focus();
		return (false);
	}
}

function checkData1 ()
{
	if (document.form2.ss.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.form2.ss.focus();
	    return false;
	}
	else{
		return true;
	}

}

function checkData2 ()
{
	if (document.form1.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.form1.search.focus();
	    return false;
	}
	else{
		return true;
	}

}

function checkData ()
{
	if (document.form1.choice[0].checked) {
		document.form1.action = "http://www.indiamart.com/cgi/AT-eximsearch.cgi";
	}
	else {
	    document.form1.action = "http://www.indiamart.com/cgi/AT-india2search.cgi";
	}
	if (document.form1.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.form1.search.focus();
	    return false;
	}
return true;

}

function convert()

{
var loc = document.location.toString();
loc = loc.substring(7,loc.length);
var idx;
idx = document.trans.langpair.selectedIndex;
if (idx<=0) 
{
alert("Please select a language.");
return false;
}
else{
window.open('http://translate.google.com/translate_c?langpair=' + document.trans.langpair.options[idx].value + "&u=" + document.location,"new_trans");
return false;
}
}
function getblank(this1)  {
	if (this1.value == "Your e-mail here") {
		this1.value = "";
	}
	return true;	
}