function showTab(intI){
	var bgImages = [];
	var textCopies = [];
	
	bgImages[0] = "wiremeshimages/home001.jpg";
	bgImages[1] = "wiremeshimages/home002.jpg";
	bgImages[2] = "wiremeshimages/home003.jpg";
	bgImages[3] = "wiremeshimages/home004.jpg";
	
	textCopies[0] = "<A class=iron-wires href=galvanizedwire.htm>¶ÆÐ¿Ë¿</A> | <A class=iron-wires                         href=black-annealed-wire.htm>ºÚÌúË¿</A> | <A class=iron-wires                         href=pvccoatedironwire.htm>PVC Í¿ËÜË¿</A> | <A class=iron-wires href=ushapewire.htm> U                         ÐÍË¿</A> | <A class=iron-wires href=barbedwire.htm>´ÌÉþ</A>| <A class=iron-wires                         href=brasswire.htm>Í­Ë¿  </A>| <A class=iron-wires href=stainlesssteelwire.htm>²»Ðâ¸ÖË¿</A>";
	textCopies[1] = "<a href=stainlesssteelwiremesh.htm  class=iron-wires>²»Ðâ¸ÖË¿Íø</a> |<a href=stainlesssteelfiltecloth.htm  class=iron-wires>²»Ðâ¸ÖÃÜÎÆÍø</a> |<a href=stainlesssteelfilterdisc.htm class=iron-wires> ²»Ðâ¸ÖÍøÆ¬ </a> | <a href=stainlesssteelfilterelement.htm class=iron-wires>²»Ðâ¸Ö¹ýÂËÆ÷</a> | <a href=sinteredwiremesh.htm class=iron-wires>ÉÕ½áÍø</a> |                     <a href=crimpedwiremesh.htm class=iron-wires>Ôþ»¨Íø</a> | <a href=decorativemesh.htm class=iron-wires>×°ÊÎÍø</a>";
	textCopies[2] = "<A href=expandedmetalmesh.htm class=iron-wires>¸Ö°åÍø </A>| <A href=perforatedmetals.htm class=iron-wires>³å¿×Íø</A> | <A href=bar-grating.htm class=iron-wires>¸Ö¸ñ°å</A>";
	textCopies[3] = "<a href=highsecurityfence.htm class=iron-wires>¸ß¿Õ·À»¤Íø</a> |  &nbsp;<a href=358securityfence.htm class=iron-wires>358 ·À»¤Íø</a> | <a href=temporaryfencing.htm class=iron-wires>&nbsp;ÁÙÊ±»¤À¸</a> |  &nbsp;<a href=sportsfence.htm class=iron-wires>ÔË¶¯³¡»¤À¸</a> |  &nbsp;<a href=ornamentalfence.htm class=iron-wires>ÌúÒÕ»¤À¸</a> |  &nbsp;<a href=chainlinkfence.htm class=iron-wires>¹´»¨Íø</a> |                        <a href=fenceposts.htm class=iron-wires>»¤À¸Á¢Öù</a> |<a href=barbedwire.htm class=iron-wires>´ÌÉþ</a> |&nbsp;<a href=razor-barbed-wire.htm class=iron-wires>µ¶Æ¬´ÌÍø</a> | <br>                  <a href=gabionbox.htm class=iron-wires>Ê¯ÁýÍø</a> | <a href=weldedwiremeshpanel.htm class=iron-wires>µçº¸ÍøÆ¬</a> |  &nbsp;<a href=hexagonalwirenetting.htm class=iron-wires>Áù½ÇÍø</a> ";
	
	document.getElementById("headerZone").style.background = "url(" + bgImages[intI] + ")";
	document.getElementById("headerText").innerHTML = textCopies[intI];
}

function trim(text){
	text = text.replace(/^\s+/, "");
	text = text.replace(/\s+$/, "");
	text = text.replace(/\s+/g, " ");
	return text;
}

function checkSendFeedback(){		

	var objForm = document.getElementById("frmEnquiry");
	
	if (trim(objForm.name.value).length < 2){
		alert("Please enter your name.");
		objForm.name.value = trim(objForm.name.value);
		objForm.name.focus();
		return false;
	}
	
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(trim(objForm.llmhgyt.value)))){
		alert("Please enter a valid email address for yourself.");
		objForm.llmhgyt.value = trim(objForm.llmhgyt.value);
		objForm.llmhgyt.focus();
		return false;
	}
	
	if (trim(objForm.number.value).length < 2){
		alert("Please enter your contact number.");
		objForm.number.value = trim(objForm.number.value);
		objForm.number.focus();
		return false;
	}
	
	return true;
	
}