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 check_advanced_search(Form) {

  error = 0;

Form.ss.value = Form.ss.value.replace(/[^a-zA-Z0-9 ]/g, ' ');
var temp = Form.ss.value.replace(/\s/g, '');

  if (temp.length < 3) {

    error_message = "Please enter atleast 3 characters for search";

    error = 1;

  }

  if (error == 1) {

    alert(error_message);

    Form.ss.focus();

    return false;

  } else {

    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 thisurl_string = thisurl + "?email=" + email_val + "&from_site=" + from_site_val + "&is_window=" + is_window_val;

	if ( CanAnimate ) {
			msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=550,height=220');
			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=220');
	}
}

function addBookmark(title,url) {

	if (window.sidebar) {
		window.sidebar.addPanel("Indian Chemical Portal", url,"");
		//return false;
	}
	else if( document.all ) {
		window.external.AddFavorite( url, "Indian Chemical Portal");
		//return false;
	}
	else if(navigator.appName == 'Netscape') {
		alert('Press (CTRL-D) to bookmark this page.');
		//return false;
	}
	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=230,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=360,left=0,top=0');
}
}
function openchildts(thisurl)
{
	if ( CanAnimate ){
	
		var windowHeight;
		var windowWidth;
		var windowTop;
		var windowLeft;
		windowHeight=(screen.height*(80/100))*0.85;
		windowWidth=screen.width*(70/100);
		windowTop=(screen.height*(20/100))*0.8;
		windowLeft=screen.width*(28.5/100);
	
		msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,top='+windowTop+',left='+windowLeft+',width='+windowWidth+',height='+windowHeight);
		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=510,height=420');
	}
}






function qry(cid,ctg,from,ss,modid,comp,city,state,country,visitor,redirect_to)
{
cid = unescape(cid);
ctg = unescape(ctg);
ss = unescape(ss);
comp = unescape(comp);
city = unescape(city);
state = unescape(state);
country = unescape(country);



document.getElementById('qform').className="on";
document.getElementById('cn').innerHTML=comp;
document.getElementById('ct').innerHTML=city;
document.getElementById('st').innerHTML=state;
document.getElementById('cty').innerHTML=country;

document.getElementById('cid').value=cid;

document.getElementById('ctg').value=ctg;

document.getElementById('from').value=from;
document.getElementById('ss').value=ss;
document.getElementById('modid').value=modid;
document.getElementById('comp').value=comp;
document.getElementById('city').value=city;
document.getElementById('state').value=state;
document.getElementById('country').value=country;
document.getElementById('visitor').value=visitor;
document.getElementById('redirect_to').value=redirect_to;
document.getElementById('subject').value=comp+', '+city+' Business Enquiry Through IndiaMART.com';

document.getElementById('Description').value="";

document.getElementById('captcha_text').value="";

bhw();

}



function cls()
{

document.getElementById('cn').innerHTML="";
document.getElementById('ct').innerHTML="";
document.getElementById('st').innerHTML="";
document.getElementById('cty').innerHTML="";

document.getElementById('qform').className="off";

document.getElementById('cid').value="";

document.getElementById('ctg').value="";

document.getElementById('from').value="";
document.getElementById('ss').value="";
document.getElementById('modid').value="";
document.getElementById('comp').value="";
document.getElementById('city').value="";
document.getElementById('state').value="";
document.getElementById('country').value="";
document.getElementById('visitor').value="";
document.getElementById('redirect_to').value="";
document.getElementById('subject').value="";

document.getElementById('Description').value="";

document.getElementById('captcha_text').value="";
}








var myWidth=0,myHeight=0;

function bhw(){



if(typeof(window.innerWidth)== 'number'){myWidth=window.innerWidth;
myHeight=window.innerHeight;
}else if(document.documentElement &&(document.documentElement.clientWidth||document.documentElement.clientHeight)) {myWidth=document.documentElement.clientWidth;
myHeight=document.documentElement.clientHeight;
}else if(document.body &&(document.body.clientWidth||document.body.clientHeight)) {myWidth=document.body.clientWidth;
myHeight=document.body.clientHeight;
}
var h=window.pageYOffset ||document.body.scrollTop ||document.documentElement.scrollTop;


var lft =myWidth-723;
lft = lft/2;
var tp =myHeight-500;
tp = tp/2;
tp = tp+h;

if (myHeight < 500)
{
tp = 15;
 }


document.getElementById('qform').style.left = lft+"px";
document.getElementById('qform').style.top = tp+"px";
}

var d = new Date();
var epoch_time =(d.getTime()-d.getMilliseconds())/1000;
var randomnumber=Math.floor(Math.random()*9999);
var randomnumber1=Math.floor(Math.random()*9999);
var ran_num=randomnumber+"."+epoch_time+"."+randomnumber1;

var url="/cgi/get_captcha.cgi?cref="+ran_num+"&style=2";

document.write('<DIV class="off"  STYLE="background:#FFFFFF; position:absolute; border:3px solid #0061d9; width:723px; height:520px; z-index:2000"     ID="qform"><TABLE CLASS="glqry-table-border" ALIGN="" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="723" STYLE="border:0px;">      <TBODY>      <TR>        <TD CLASS="catname" HEIGHT="26" STYLE="background:#0061d9"><A HREF="javascript:cls();"><IMG SRC="/gifs/cl.gif" WIDTH="21" HEIGHT="21" HSPACE="5" ALIGN="RIGHT"></A>        <DIV CLASS="coname" STYLE="color:#FFF">Send enquiry to:</DIV></TD>      </TR></TBODY>    </TABLE>    <FORM CLASS="fo" NAME="dataform" ACTION="/cgi/query-automail.mp" METHOD="post">    <TABLE ALIGN="" BORDER="0" CELLPADDING="0" CELLSPACING="3" WIDTH="723">      <TBODY>      <TR>        <TD VALIGN="TOP" WIDTH="130"></TD>        <TD>        <DIV CLASS="body-1"><B ID="cn"></B><BR>        <B ID="ct"></B>, <B ID="st"></B>, <B ID="cty"></B></DIV></TD>      </TR>      <TR>        <TD CLASS="glqry-bgcolor" VALIGN="TOP" WIDTH="140">        <DIV CLASS="text-1"><B>Please describe your requirement with details        like:<BR>        </B>&quot; Product name<BR>         &quot; Specifications<BR>         &quot; Features etc.</DIV></TD>        <TD><TEXTAREA NAME="Description" id="Description" ROWS="6" COLS="68"></TEXTAREA> </TD>      </TR></TBODY>    </TABLE><INPUT NAME="subject" id="subject" TYPE="HIDDEN"><INPUT NAME="required"     VALUE="S_email,S_name,S_ccode,S_acode,S_phone,S_country,Description"     TYPE="HIDDEN"><INPUT NAME="isset" VALUE="no" TYPE="HIDDEN"><INPUT     NAME="which_submit" VALUE="submit_visitor" TYPE="HIDDEN">    <INPUT NAME="visitor" id="visitor" VALUE="" TYPE="HIDDEN"><!--For the customization just change the VALUES of the following fields, Also change the subject value above-->        <INPUT NAME="cid"  id="cid" VALUE="" TYPE="HIDDEN"><INPUT NAME="comp" id="comp" VALUE=""     TYPE="HIDDEN"><INPUT NAME="city" id="city" VALUE="" TYPE="HIDDEN">    <INPUT NAME="state" id="state" VALUE="" TYPE="HIDDEN"><INPUT NAME="country" id="country" VALUE=""     TYPE="HIDDEN"><INPUT NAME="redirect_to" id="redirect_to" VALUE="" TYPE="HIDDEN">    <INPUT NAME="title"     VALUE="Shivam Industries, Mumbai thanks you for  sending the query"     TYPE="HIDDEN"><INPUT NAME="sort" VALUE="order:subject,Description"     TYPE="HIDDEN"><INPUT NAME="modid" id="modid" VALUE="" TYPE="HIDDEN">    <INPUT NAME="ctg" Id="ctg" VALUE="0" TYPE="HIDDEN"><INPUT NAME="grp" VALUE="0"     TYPE="HIDDEN"><INPUT NAME="mcat" VALUE="0" TYPE="HIDDEN">    <INPUT NAME="PRODUCTS" VALUE="" TYPE="HIDDEN"><INPUT NAME="from" id="from" VALUE=""     TYPE="HIDDEN"><INPUT NAME="ss" id="ss" VALUE="" TYPE="HIDDEN"><INPUT NAME="kc"     VALUE="k" TYPE="HIDDEN"><!-- End of Customization-->        <INPUT NAME="original_refer"     VALUE=""     TYPE="HIDDEN"><DIV><IMG SRC="/gifs/zero.gif" WIDTH="1" HEIGHT="4"></DIV>    <TABLE CLASS="glqry-table-border" BORDER="0" CELLPADDING="0"     CELLSPACING="0" WIDTH="723">      <TBODY>      <TR>        <TD ALIGN="left" HEIGHT="26">        <DIV CLASS="glqry-texts" ALIGN="left"><B CLASS="glqry-coname">Your        contact information:</B>&nbsp;&nbsp; (Fields marked with asterisk        <FONT COLOR="#ff0000" SIZE="-1">*</FONT> are mandatory)</DIV></TD>      </TR></TBODY>    </TABLE>    <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="723">      <TBODY>      <TR>        <TD COLSPAN="2" HEIGHT="10"></TD>      </TR>      <TR>        <TD WIDTH="50%">        <TABLE CLASS="glqry-table-border1" BORDER="0" CELLPADDING="2" CELLSPACING="1" WIDTH="100%">          <TBODY>          <TR>            <TD CLASS="glqry-bgcolor3" WIDTH="100"><FONT COLOR="#ff0000" SIZE="-1">*</FONT><B CLASS="glqry-texts">Name:</B></TD>            <TD><INPUT NAME="S_name" SIZE="33" VALUE=""></TD>          </TR>          <TR>            <TD CLASS="glqry-bgcolor3"><FONT SIZE="-2">&nbsp;&nbsp;</FONT><B CLASS="glqry-texts">Company:</B></TD>            <TD><INPUT MAXLENGTH="80" NAME="S_organization" SIZE="33" VALUE=""></TD>          </TR>          <TR>            <TD CLASS="glqry-bgcolor3" HEIGHT="59"><FONT COLOR="#ff0000" SIZE="-1">*</FONT><B CLASS="glqry-texts">Phone:</B></TD>            <TD ALIGN="left">            <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">              <TBODY>              <TR>                <TD WIDTH="53"><FONT FACE="verdana,arial" SIZE="-2">Country<BR>                 Code</FONT></TD>                <TD WIDTH="50"><FONT FACE="verdana,arial" SIZE="-2">Area<BR>                 Code</FONT></TD>                <TD><FONT FACE="verdana,arial" SIZE="-2">Phone<BR>                 Number</FONT></TD>              </TR></TBODY>            </TABLE><INPUT NAME="S_ccode" SIZE="4" VALUE="" TYPE="TEXT">&nbsp;<INPUT NAME="S_acode" SIZE="4" TYPE="TEXT">&nbsp;<INPUT NAME="S_phone" SIZE="12" VALUE="" TYPE="TEXT"></TD>          </TR>          <TR>            <TD CLASS="glqry-bgcolor3"><FONT SIZE="-2">&nbsp;&nbsp;</FONT><B CLASS="glqry-texts">Fax:</B></TD>            <TD ALIGN="left"><INPUT MAXLENGTH="5" NAME="S_ccode_fax" ONFOCUS="get_ccode()" SIZE="4">&nbsp;<INPUT MAXLENGTH="10" NAME="S_acode_fax" ONFOCUS="get_acode()" SIZE="4">&nbsp;<INPUT NAME="S_fax" SIZE="12" TYPE="TEXT"></TD>          </TR></TBODY>        </TABLE></TD>        <TD ALIGN="middle" VALIGN="top">        <TABLE CLASS="glqry-table-border1" BORDER="0" BORDERCOLOR="#e6f7ff" CELLPADDING="2" CELLSPACING="1" WIDTH="100%">          <TBODY>          <TR>            <TD CLASS="glqry-bgcolor3" WIDTH="100"><FONT COLOR="#ff0000" SIZE="-1">*</FONT><B CLASS="glqry-texts">Email:</B></TD>            <TD><INPUT MAXLENGTH="60" NAME="S_email" SIZE="33" VALUE=""></TD>          </TR>          <TR>            <TD CLASS="glqry-bgcolor3"><FONT SIZE="-2">&nbsp;&nbsp;</FONT><B CLASS="glqry-texts">Street            Address:</B></TD>            <TD><INPUT MAXLENGTH="150" NAME="S_streetaddress" SIZE="33"> </TD>          </TR>          <TR>            <TD CLASS="glqry-bgcolor3"><FONT SIZE="-2">&nbsp;&nbsp;</FONT><B CLASS="glqry-texts">City/State:</B></TD>            <TD><INPUT MAXLENGTH="50" NAME="S_city" SIZE="33"></TD>          </TR>          <TR>            <TD CLASS="glqry-bgcolor3"><FONT SIZE="-2">&nbsp;&nbsp;</FONT><B CLASS="glqry-texts">Zip/Postal            Code:</B></TD>            <TD><INPUT MAXLENGTH="30" NAME="S_pin" SIZE="15"></TD>          </TR>          <TR>            <TD CLASS="glqry-bgcolor3"><FONT COLOR="#ff0000" SIZE="-1">*</FONT><B CLASS="glqry-texts">Country:</B></TD>            <TD><INPUT MAXLENGTH="50" NAME="S_country" SIZE="33" VALUE=""></TD>          </TR></TBODY>        </TABLE></TD>      </TR></TBODY>    </TABLE>    <DIV><BR>    </DIV>    <TABLE CLASS="glqry-table-border3" BORDER="0" CELLPADDING="2"     CELLSPACING="1" WIDTH="723">      <TBODY>      <TR>        <TD CLASS="glqry-bgcolor1" WIDTH="100"><FONT COLOR="#ff0000" SIZE="-1">*</FONT><B CLASS="glqry-texts">Security        Code:</B></TD>        <TD CLASS="glqry-bgcolor2" VALIGN="top">        <DIV CLASS="glqry-textvs1" STYLE="padding-left: 3px;  padding-bottom: 3px;"><B STYLE="color: rgb(153, 0, 0);">Please        enter the code shown on the image </B></DIV>        <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">          <TBODY><TR><TD><IMG SRC='+url+' WIDTH="120" HEIGHT="30"></TD>                        <TD><INPUT VALUE="" NAME="captcha_text" id="captcha_text" MAXLENGTH="6" SIZE="19" TYPE="TEXT"><INPUT NAME="captcha_ref" id="captcha_ref" VALUE="" TYPE="hidden"></TD></TR><TR><TD COLSPAN="2" VALIGN="BOTTOM" HEIGHT="18"><DIV CLASS="glqry-textvs1">" If you cannot see this image <A HREF="javascript:%20var%20pop_it=window.open(\'/imageverify.html\',\'subwindow\',\'toolbar=no,location=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=400,height=310\');" style="color:#0000FF">click              here</A></DIV></TD>          </TR></TBODY>        </TABLE></TD>        <TD>        <DIV CLASS="glqry-small-text">This Image Code Verification enables us        to prevent any automated enquiry submissions, thereby ensuring that our        members get only the genuine enquiries.  <A HREF="javascript:%20var%20pop_it=window.open(\'/imageverify.html\',\'subwindow\',\'toolbar=no,location=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=400,height=310\');"><FONT FACE="verdana,arial" SIZE="-2">More</FONT></A></DIV></TD>      </TR></TBODY>    </TABLE>    <DIV ALIGN="CENTER" STYLE="padding-top:10px;"><INPUT NAME="submit_visitor" VALUE="Submit Enquiry" ONCLICK="return set();" TYPE="submit"></DIV></FORM></div>');

document.getElementById('captcha_ref').value = ran_num;




expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set(){
if(document.dataform.Description.value == "") {
			alert ("Kindly describe your requirement.");
			document.dataform.Description.focus();
			return false;
		}
		if (document.dataform.Description.value.length>2000) {
			alert("Kindly describe your requirement within the limit of 2000 characters.");
			document.dataform.Description.focus();
			return false;
		}
		if (document.dataform.S_name.value.length == 0)  {
			alert ("Kindly enter your name.");
			document.dataform.S_name.focus();
			return false;
		}
		
		if (document.dataform.S_ccode.value.length == 0)  {
			alert ("Kindly enter your country code.");
			document.dataform.S_ccode.focus();
			return false;
		}
		else if (document.dataform.S_ccode.value == 0)
		{
			alert ("Kindly enter your country code.");
			document.dataform.S_ccode.focus();
			return false;
		}


		//if (document.dataform.S_acode.value.length == 0)  {
		//	alert ("Kindly enter your area code.");
		//	document.dataform.S_acode.focus();
		//	return false;
		//}
		//else if (document.dataform.S_acode.value==0)
		//{
		//	alert ("Kindly enter your area code.");
		//	document.dataform.S_acode.focus();
		//	return false;
		//}

		if (document.dataform.S_phone.value.length == 0)  {
			alert ("Kindly enter your phone number.");
			document.dataform.S_phone.focus();
			return false;
		}
		else if (document.dataform.S_phone.value==0)
		{
			alert ("Kindly enter your phone number.");
			document.dataform.S_phone.focus();
			return false;
		}


		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.dataform.S_email.value))) {
				alert("Invalid Email ID. Kindly enter the correct ID.");
				document.dataform.S_email.focus();
				return (false);
		}

		if (document.dataform.S_country.value.length == 0)  {
			alert ("Kindly enter your country name.");
			document.dataform.S_country.focus();
			return false;
		}

		if (document.dataform.captcha_text.value.length == 0)  {
			alert ("Kindly enter the code as appearing in the Image.");
			document.dataform.captcha_text.focus();
			return false;
		}

newIILCookie = document.dataform.S_name.value;
newIILCookie +="|"+document.dataform.S_email.value;
newIILCookie +="|"+document.dataform.S_organization.value;
newIILCookie +="|"+document.dataform.S_streetaddress.value;
newIILCookie +="|"+document.dataform.S_city.value;
newIILCookie +="|"+document.dataform.S_ccode.value;
newIILCookie +="|"+document.dataform.S_acode.value;
newIILCookie +="|"+document.dataform.S_phone.value;
newIILCookie +="|"+document.dataform.S_pin.value;
newIILCookie +="|"+document.dataform.S_ccode_fax.value;
newIILCookie +="|"+document.dataform.S_acode_fax.value;
newIILCookie +="|"+document.dataform.S_fax.value;
newIILCookie +="|"+document.dataform.S_country.value;
setCookie("newImeshID",newIILCookie)
return true;

} // end set


	function get() {

		if( (cookie = getCookie("newImeshID")) > "") {

			Values = cookie.split("|");
			if (Values.length >= 13) {
				if (document.dataform.S_name.value.length == 0)     document.dataform.S_name.value = Values[0];
				if (document.dataform.S_email.value.length == 0)    document.dataform.S_email.value = Values[1];
				if (document.dataform.S_organization.value.length == 0)   document.dataform.S_organization.value = Values[2];
				if (document.dataform.S_streetaddress.value.length == 0)     document.dataform.S_streetaddress.value = Values[3];
				if (document.dataform.S_city.value.length == 0)     document.dataform.S_city.value = Values[4];
				if (document.dataform.S_ccode.value.length == 0) document.dataform.S_ccode.value=Values[5];

				if (document.dataform.S_acode.value.length == 0)  document.dataform.S_acode.value=Values[6];
				if (document.dataform.S_phone.value.length == 0)   document.dataform.S_phone.value=Values[7];
				if (document.dataform.S_pin.value.length == 0) document.dataform.S_pin.value=Values[8];
				if (document.dataform.S_ccode_fax.value.length == 0) document.dataform.S_ccode_fax.value=Values[9];

				if (document.dataform.S_acode_fax.value.length == 0) document.dataform.S_acode_fax.value=Values[10];
				if (document.dataform.S_fax.value.length == 0) document.dataform.S_fax.value=Values[11];
				if (document.dataform.S_country.value.length == 0) document.dataform.S_country.value=Values[12];



			}
		}
return true;

		
	}  // end get

	function setCookie(name, value)
{
	expires = new Date();
	expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);

	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)
			//alert("Offset:"+offset);
			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 "";
	}  // end getCookie

	function get_ccode() {
		document.dataform.S_ccode_fax.value = document.dataform.S_ccode.value;
	}
	function get_acode() {
		document.dataform.S_acode_fax.value = document.dataform.S_acode.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);
	}
}

function checkData1 ()
{
	if (document.form2.search.value.length < 3){
	    alert("Enter at least three characters for search."); 
	    document.form2.search.focus();
	    return false;
	}
	else{
		return true;
	}

}
function addEvent( obj, type, fn ){ 
   if (obj.addEventListener){ 
	  obj.addEventListener( type, fn, false );
   }
   else if (obj.attachEvent){ 
	  obj["e"+type+fn] = fn; 
	  obj[type+fn] = function(){ obj["e"+type+fn]( window.event ); } 
	  obj.attachEvent( "on"+type, obj[type+fn] ); 
   } 

}

addEvent(window, 'load', get);

