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(kw) {
 error = 0;
 if (kw.length < 3) {
 error_message = "Please enter atleast 3 characters for search";
 error = 1;
 }

 if (error == 1) {
 alert(error_message);
 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("Industrial Metal Casting", url,"");
		//return false;
	}
	else if( document.all ) {
		window.external.AddFavorite( url, "Industrial Metal Casting");
		//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');
	}
}








//popup JS Start


function show_alert()
{

 document.getElementById('query').style.display="block";
 document.getElementById('contentone').innerHTML='<DIV ALIGN="left"><TABLE WIDTH="600" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="left" class="dt"><TR><TD VALIGN="TOP"><DIV>  <FORM ACTION="/cgi/autopcat.pl" METHOD="post" NAME="dataform" ONSUBMIT=" return set()"><P ALIGN="CENTER"><SPAN ID="redirect_url"></SPAN><INPUT TYPE="HIDDEN" NAME="required" VALUE="Description,quantity,S_organization,S_name,S_email,S_phone_country_code,S_phone,S_country,captcha_text"><INPUT TYPE="HIDDEN" NAME="sort" VALUE="order:subject,Nature_of_Business,Description,quantity,S_organization,S_name,S_email,S_phone_country_code,S_phone,S_country"><INPUT TYPE="hidden" NAME="native_captcha" VALUE="1"><INPUT TYPE="hidden" NAME="PRODUCT" VALUE=""><INPUT TYPE="HIDDEN" NAME="gluser_id" VALUE="1397496"><INPUT TYPE="HIDDEN" NAME="modid" VALUE="PDTPTL"></P><SCRIPT LANGUAGE="javascript">var is_input = document.URL.indexOf(\'?\');var pname = \'\'; if (is_input != -1) {     addr_str = document.URL.substring(is_input+1, document.URL.length); strarr = addr_str.split("&");pname = unescape((strarr[0].split("="))[1]);pname = pname.replace(/\+/g," ");	if(strarr[1]){ pcode_value = unescape((strarr[1].split("="))[0]);}else{pcode_value = \'\';}}</SCRIPT><SCRIPT LANGUAGE="javascript">var pname;var pcode_name;var pcode_value;if((pname != \'\' && pcode_value != \'\') && (pcode_name == \'pcode\')){document.dataform.PRODUCT.value=pname+" ("+pcode_value+")";}else if(pname != \'\'){document.dataform.PRODUCT.value=pname;}</SCRIPT><TABLE WIDTH="400" BORDER="1" CELLPADDING="1" CELLSPACING="0" ALIGN="CENTER" STYLE="border-collapse:collapse; border-right:4px solid #D9E4EA; border-bottom:4px solid #D9E4EA" BORDERCOLOR="#D9E4EA" BGCOLOR="#FFFFFF"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER" WIDTH="100%"><TR><TD WIDTH="7"><IMG SRC="/gifs/pl-t.gif" WIDTH="7" HEIGHT="36" BORDER="0" HSPACE="0" VSPACE="0"></TD><TD BACKGROUND="/gifs/pl-bg.gif"><DIV CLASS="triv"><IMG SRC="/gifs/bes-ef.gif" WIDTH="231" HEIGHT="36" BORDER="0" HSPACE="0" VSPACE="0" ALIGN="ABSMIDDLE"></DIV></TD></TD><TD WIDTH="26"><IMG SRC="/gifs/close.gif" ALT="Close" WIDTH="26" HEIGHT="36" ONCLICK="show_alert_off()"></TD></TR></TABLE><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD HEIGHT="32"><DIV CLASS="let-js">Let Us Know Your Buy Requirement!</DIV></TD><TD><DIV CLASS="let1-js" ALIGN="RIGHT">Fields marked with asterisk (<B STYLE="color:#ff0000">*</B>) are mandatory</DIV></TD></TR></TABLE><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER"><TR><TD WIDTH="143"><IMG SRC="/gifs/zero.gif" WIDTH="150" HEIGHT="1"></TD><TD></TD></TR><TR><TD CLASS="fm-left-js" ALIGN="LEFT" STYLE="padding-top:5px;"><B STYLE="color:#ff0000; font-family:arial;font-size:13px;">*</B> Products looking for:</TD><TD CLASS="fm-right-js" align="left"><INPUT NAME="quantity" SIZE="30" STYLE="height:22px;width:250px"></TD></TR><TR><TD CLASS="fm-left-js" ALIGN="RIGHT" VALIGN="TOP" STYLE="padding-top:5px;"><B STYLE="color:#ff0000; font-family:arial;font-size:13px;">*</B> Describe Your <BR>Buying Requirements <BR>in detail:</TD><TD VALIGN="TOP" CLASS="fm-right-js"><TEXTAREA CLASS="txt-input3-js" NAME="Description" ROWS="0" COLS="0" STYLE="width:350px;"></TEXTAREA></TD></TR></TABLE><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="CENTER"><TR><TD HEIGHT="35"><DIV CLASS="add-con-js"><B CLASS="let-js">Add Your Contact Details:</B> (The following information will help us to contact  you)</DIV></TD></TR></TABLE><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" ALIGN="CENTER"><TR><TD WIDTH="143"><IMG SRC="/gifs/zero.gif" HEIGHT="1" WIDTH="143"></TD><TD><IMG SRC="/gifs/zero.gif" HEIGHT="1" WIDTH="258"></TD></TR><TR><TD CLASS="fm-left-js" ALIGN="right"><B STYLE="color:#ff0000; font-family:arial;font-size:13px;">*</B> Contact Name:</TD><TD CLASS="fm-right-js" VALIGN="top" align="left"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TBODY><TR><TD align="left"><SELECT NAME="salute" STYLE="width: 49px; font-size: 14px;"><OPTION VALUE="Mr." SELECTED="selected" STYLE="height:24px;">Mr. </OPTION><OPTION VALUE="Ms.">Ms. </OPTION></SELECT></TD><TD><INPUT CLASS="em-input1-js" NAME="S_name" VALUE="" STYLE="margin-left: 3px; width:100px;height:22px;"></TD><TD><INPUT MAXLENGTH="20" SIZE="13" NAME="last_name" VALUE="" STYLE="margin-left: 3px; width:95px;height:22px;"></TD></TR></TBODY></TABLE></TD></TR><TR><TD CLASS="fm-left-js" ALIGN="right"><B STYLE="color:#ff0000; font-family:arial;font-size:13px;">*</B> Business Email:</TD><TD CLASS="fm-right-js" VALIGN="top" align="left"><INPUT STYLE="background-color: rgb(255, 255, 160);" CLASS="em-input1-js" NAME="S_email" VALUE=""></TD></TR><TR><TD CLASS="fm-left-js" ALIGN="right">Company Name:</TD><TD CLASS="fm-right-js" VALIGN="top" align="left"><INPUT CLASS="em-input1-js" NAME="S_organization" VALUE=""></TD></TR><TR><TD CLASS="fm-left-js" ALIGN="right"><B STYLE="color:#ff0000; font-family:arial;font-size:13px;">*</B> Country:</TD><TD CLASS="fm-right-js" VALIGN="top" align="left"><SELECT NAME="S_country">                <OPTION VALUE="0">---Choose One---</OPTION><OPTION>Afghanistan</OPTION><OPTION>Albania</OPTION><OPTION>Algeria</OPTION><OPTION>American Samoa</OPTION><OPTION>Andorra</OPTION><OPTION>Angola</OPTION><OPTION>Anguilla</OPTION><OPTION>Antarctica</OPTION><OPTION>Antigua And Barbuda</OPTION><OPTION>Argentina</OPTION><OPTION>Armenia</OPTION><OPTION>Aruba</OPTION><OPTION>Australia</OPTION><OPTION>Austria</OPTION><OPTION>Azerbaijan</OPTION><OPTION>Bahamas, The</OPTION><OPTION>Bahrain</OPTION><OPTION>Bangladesh</OPTION><OPTION>Barbados</OPTION><OPTION>Belarus</OPTION><OPTION>Belgium</OPTION><OPTION>Belize</OPTION><OPTION>Benin</OPTION><OPTION>Bermuda</OPTION><OPTION>Bhutan</OPTION><OPTION>Bolivia</OPTION><OPTION>Bosnia And Herzegovina</OPTION><OPTION>Botswana</OPTION><OPTION>Bouvet Island</OPTION><OPTION>Brazil</OPTION><OPTION>British Indian Ocean Territory</OPTION><OPTION>Brunei</OPTION><OPTION>Bulgaria</OPTION><OPTION>Burkina Faso</OPTION><OPTION>Burundi</OPTION><OPTION>Cambodia</OPTION><OPTION>Cameroon</OPTION><OPTION>Canada</OPTION><OPTION>Cape Verde</OPTION><OPTION>Cayman Islands</OPTION><OPTION>Central African Republic</OPTION><OPTION>Chad</OPTION><OPTION>Chile</OPTION><OPTION>China</OPTION><OPTION>China (Hong Kong S.A.R.)</OPTION><OPTION>China (Macau S.A.R.)</OPTION><OPTION>Christmas</OPTION><OPTION>Cocos (Keeling) Islands</OPTION><OPTION>Colombia</OPTION><OPTION>Comoros</OPTION><OPTION>Congo</OPTION><OPTION>Congo, Democractic Republic Of</OPTION><OPTION>Cook Islands</OPTION><OPTION>Costa Rica</OPTION><OPTION>Cote D Ivoire (Ivory Coast)</OPTION><OPTION>Croatia (Hrvatska)</OPTION><OPTION>Cuba</OPTION><OPTION>Cyprus</OPTION><OPTION>Czech Republic</OPTION><OPTION>Denmark</OPTION><OPTION>Djibouti</OPTION><OPTION>Dominica</OPTION><OPTION>Dominican Republic</OPTION><OPTION>East Timor</OPTION><OPTION>Ecuador</OPTION><OPTION>Egypt</OPTION><OPTION>El Salvador</OPTION><OPTION>Equatorial Guinea</OPTION><OPTION>Eritrea</OPTION><OPTION>Estonia</OPTION><OPTION>Ethiopia</OPTION><OPTION>Faeroe Islands</OPTION><OPTION>Falkland Islands (Islas Malvin</OPTION><OPTION>Fiji Islands</OPTION><OPTION>Finland</OPTION><OPTION>France</OPTION><OPTION>French Guiana</OPTION><OPTION>French Polynesia</OPTION><OPTION>French Southern Territories</OPTION><OPTION>Gabon</OPTION><OPTION>Gambia, The</OPTION><OPTION>Georgia</OPTION><OPTION>Germany</OPTION><OPTION>Ghana</OPTION><OPTION>Gibraltar</OPTION><OPTION>Greece</OPTION><OPTION>Greenland</OPTION><OPTION>Grenada</OPTION><OPTION>Guadeloupe</OPTION><OPTION>Guam</OPTION><OPTION>Guatemala</OPTION><OPTION>Guinea</OPTION><OPTION>Guinea-Bissau</OPTION><OPTION>Guyana</OPTION><OPTION>Haiti</OPTION><OPTION>Heard And Mcdonald Islands</OPTION><OPTION>Holy See</OPTION><OPTION>Honduras</OPTION><OPTION>Hungary</OPTION><OPTION>Iceland</OPTION><OPTION>India</OPTION><OPTION>Indonesia</OPTION><OPTION>Iran</OPTION><OPTION>Iraq</OPTION><OPTION>Ireland</OPTION><OPTION>Israel</OPTION><OPTION>Italy</OPTION><OPTION>Jamaica</OPTION><OPTION>Japan</OPTION><OPTION>Jordan</OPTION><OPTION>Kazakhstan</OPTION><OPTION>Kenya</OPTION><OPTION>Kiribati</OPTION><OPTION>Korea</OPTION><OPTION>Korea, North</OPTION><OPTION>Kuwait</OPTION><OPTION>Kyrgyzstan</OPTION><OPTION>Lao People S Democratic Republic</OPTION><OPTION>Latvia</OPTION><OPTION>Lebanon</OPTION><OPTION>Lesotho</OPTION><OPTION>Liberia</OPTION><OPTION>Libya</OPTION><OPTION>Liechtenstein</OPTION><OPTION>Lithuania</OPTION><OPTION>Luxembourg</OPTION><OPTION>Macedonia</OPTION><OPTION>Madagascar</OPTION><OPTION>Malawi</OPTION><OPTION>Malaysia</OPTION><OPTION>Maldives</OPTION><OPTION>Mali</OPTION><OPTION>Malta</OPTION><OPTION>Marshall Islands</OPTION><OPTION>Martinique</OPTION><OPTION>Mauritania</OPTION><OPTION>Mauritius</OPTION><OPTION>Mayotte</OPTION><OPTION>Mexico</OPTION><OPTION>Micronesia</OPTION><OPTION>Moldova</OPTION><OPTION>Monaco</OPTION><OPTION>Mongolia</OPTION><OPTION>Montserrat</OPTION><OPTION>Morocco</OPTION><OPTION>Mozambique</OPTION><OPTION>Myanmar</OPTION><OPTION>Namibia</OPTION><OPTION>Nauru</OPTION><OPTION>Nepal</OPTION><OPTION>Netherlands Antilles</OPTION><OPTION>New Caledonia</OPTION><OPTION>New Zealand</OPTION><OPTION>Nicaragua</OPTION><OPTION>Niger</OPTION><OPTION>Nigeria</OPTION><OPTION>Niue</OPTION><OPTION>Norfolk Island</OPTION><OPTION>Northern Mariana Islands</OPTION><OPTION>Norway</OPTION><OPTION>Oman</OPTION><OPTION>Pakistan</OPTION><OPTION>Palau</OPTION><OPTION>Panama</OPTION><OPTION>Papua New Guinea</OPTION><OPTION>Paraguay</OPTION><OPTION>Peru</OPTION><OPTION>Philippines</OPTION><OPTION>Pitcairn Island</OPTION><OPTION>Poland</OPTION><OPTION>Portugal</OPTION><OPTION>Puerto Rico</OPTION><OPTION>Qatar</OPTION><OPTION>Reunion</OPTION><OPTION>Romania</OPTION><OPTION>Russia</OPTION><OPTION>Rwanda</OPTION><OPTION>Saint Helena</OPTION><OPTION>Saint Kitts And Nevis</OPTION><OPTION>Saint Lucia</OPTION><OPTION>Saint Pierre And Miquelon</OPTION><OPTION>Saint Vincent And The Grenadin</OPTION><OPTION>Samoa</OPTION><OPTION>San Marino</OPTION><OPTION>Sao Tome And Principe</OPTION><OPTION>Saudi Arabia</OPTION><OPTION>Senegal</OPTION><OPTION>Serbia And Montenegro</OPTION><OPTION>Seychelles</OPTION><OPTION>Sierra Leone</OPTION><OPTION>Singapore</OPTION><OPTION>Slovakia</OPTION><OPTION>Slovenia</OPTION><OPTION>Solomon Islands</OPTION><OPTION>Somalia</OPTION><OPTION>South Africa</OPTION><OPTION>South Georgia</OPTION><OPTION>Spain</OPTION><OPTION>Sri Lanka</OPTION><OPTION>Sudan</OPTION><OPTION>Suriname</OPTION><OPTION>Svalbard And Jan Mayen Islands</OPTION><OPTION>Swaziland</OPTION><OPTION>Sweden</OPTION><OPTION>Switzerland</OPTION><OPTION>Syria</OPTION><OPTION>Taiwan</OPTION><OPTION>Tajikistan</OPTION><OPTION>Tanzania</OPTION><OPTION>Thailand</OPTION><OPTION>The Netherlands</OPTION><OPTION>Togo</OPTION><OPTION>Tokelau</OPTION><OPTION>Tonga</OPTION><OPTION>Trinidad And Tobago</OPTION><OPTION>Tunisia</OPTION><OPTION>Turkey</OPTION><OPTION>Turkmenistan</OPTION><OPTION>Turks And Caicos Islands</OPTION><OPTION>Tuvalu</OPTION><OPTION>Uganda</OPTION><OPTION>Ukraine</OPTION><OPTION>United Arab Emirates</OPTION><OPTION>United Kingdom</OPTION><OPTION>United States Minor Outlying I</OPTION><OPTION>United States Of America</OPTION><OPTION>Uruguay</OPTION><OPTION>Uzbekistan</OPTION><OPTION>Vanuatu</OPTION><OPTION>Venezuela</OPTION><OPTION>Vietnam</OPTION><OPTION>Virgin Islands (British)</OPTION><OPTION>Virgin Islands (Us)</OPTION><OPTION>Wallis And Futuna Islands</OPTION><OPTION>Western Sahara</OPTION><OPTION>Yemen</OPTION><OPTION>Zambia</OPTION><OPTION>Zimbabwe<OPTION> </SELECT></TD></TR><TR><TD CLASS="fm-left-js" STYLE="padding-top: 17px;" ALIGN="right"><B STYLE="color:#ff0000; font-family:arial;font-size:13px;">*</B> PhoneNumber:</TD><TD CLASS="fm-right-js" VALIGN="top" align="left"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TBODY><TR><TD CLASS="smalltext-js" VALIGN="bottom" WIDTH="71">Country Code</TD><TD CLASS="smalltext-js" STYLE="padding-left:3px;" VALIGN="bottom" WIDTH="56">Area Code</TD><TD CLASS="smalltext-js" STYLE="padding-left: 3px;" VALIGN="bottom">Phone Number</TD></TR><TR><TD><INPUT CLASS="ph-ccode1-js" NAME="S_phone_country_code" MAXLENGTH="6" SIZE="3" STYLE="height:24px;margin-right:10px"></TD><TD><INPUT CLASS="ar-ccode1-js" SIZE="5" NAME="S_phone_area_code" ID="txtArea" VALUE="" STYLE="height:22px;"></TD><TD><INPUT CLASS="pho-no1" NAME="S_phone" SIZE="15" VALUE="" STYLE="height:22px;width:120px;margin-left:7px;"></TD></TR></TBODY></TABLE></TD></TR><TR><TD CLASS="fm-left-js" ALIGN="right"><B STYLE="color:#ff0000; font-family:arial;font-size:13px;">*</B> Enter the code <BR> shown on image:</TD><TD CLASS="fm-right-js" VALIGN="top" align="left"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TBODY><TR><TD WIDTH="105"><INPUT CLASS="pho-no1" MAXLENGTH="6" SIZE="15" NAME="captcha_text" STYLE="width:129px;"></TD><TD STYLE="padding-left:5px;"><INPUT TYPE="HIDDEN" NAME="captcha_ref" value="">&nbsp;<img src="'+url1+'"   WIDTH="120" HEIGHT="30";></TD></TR></TBODY></TABLE></TD></TR></TABLE><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="CENTER" HEIGHT="50"><DIV ALIGN="CENTER"> <INPUT TYPE="submit" NAME="post" VALUE="Submit Your Enquiry" STYLE="font-size:16px;height:36px;font-weight:bold;width:250px;" ALIGN="MIDDLE"></DIV></TD></TR><TR><TD BACKGROUND="/gifs/pl-bot.gif" HEIGHT="3"><IMG SRC="/gifs/zero.gif" WIDTH="1" HEIGHT="3"></TD></TR></TABLE></TD></TR></TABLE></FORM><BR><BR></DIV></TD></TR></TABLE></DIV>';
document.dataform.captcha_ref.value = ran_num;
//  document.getElementById('captchaimage').src=url;

}


function show_alert_off()
{
 document.getElementById('query').style.display="none";
}


function bhw() 
	{
  var myWidth = 0, myHeight = 0;
  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 hp = document.body.offsetHeight;


var bwidth= myWidth-22;
	document.getElementById('tableheight').style.height=myHeight+'px';
	document.getElementById('divheight').style.height=h+'px';
	document.getElementById('query').style.height=hp+'px';

}




