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=wiremesh/galvanizedwire.htm>Galvanized                   Wire</A> | <A class=iron-wires href=wiremesh/black-annealed-wire.htm>Black Annealed Wire</A> | <A class=iron-wires                        href=wiremesh/pvccoatedironwire.htm>PVC Coated Wire</A> | <A class=iron-wires                         href=wiremesh/ushapewire.htm> U Type Tie Wire</A> | <A class=iron-wires                         href=wiremesh/barbedwire.htm>Barbed                           Wire</A>| <A class=iron-wires                         href=wiremesh/brasswire.htm>Brass Wire </A>|<br>                                        <A class=iron-wires                         href=wiremesh/stainlesssteelwire.htm>Stainless Steel Wire</A>. ";
	textCopies[1] = "<a href=wiremesh/stainlesssteelwiremesh.htm  class=iron-wires>Stainless steel wire mesh</a> |<a href=wiremesh/stainlesssteelfiltecloth.htm  class=iron-wires>Stainless steel filter cloth</a> |<a href=wiremesh/stainlesssteelfilterdisc.htm class=iron-wires> Stainless steel filter disc</a> | <a href=wiremesh/stainlesssteelfilterelement.htm class=iron-wires>Stainless steel filter element</a> | <a href=wiremesh/sinteredwiremesh.htm class=iron-wires>Stainless steel sintered wire mesh</a> |                     <a href=wiremesh/crimpedwiremesh.htm class=iron-wires>Stainless steel crimped wire mesh</a> | <a href=wiremesh/decorativemesh.htm class=iron-wires>Decorative Mesh</a> ";
	textCopies[2] = "<A href=wiremesh/expandedmetalmesh.htm class=iron-wires>Expanded Metal Mesh </A>| <A href=wiremesh/perforatedmetals.htm class=iron-wires>Perforated Metal Mesh</A> | <br><A href=wiremesh/bar-grating.htm class=iron-wires>Bar Grating</A> ";
	textCopies[3] = "<a href=wiremesh/highsecurityfence.htm class=iron-wires>High Security Fence</a> |  &nbsp;<a href=wiremesh/358securityfence.htm class=iron-wires>358  Security Fence</a> | <a href=wiremesh/temporaryfencing.htm class=iron-wires>&nbsp;Temporary Fence</a> |  &nbsp;<a href=wiremesh/sportsfence.htm class=iron-wires>Sports Fence</a> |  &nbsp;<a href=wiremesh/ornamentalfence.htm class=iron-wires>Ornamental Fence</a> | <a href=wiremesh/poolfence.htm class=iron-wires>Pool Fence</a>&nbsp; |  &nbsp;<a href=wiremesh/chainlinkfence.htm class=iron-wires>Chain Link Fence</a> | <a href=wiremesh/fenceposts.htm class=iron-wires>Fence Post</a> |<a href=wiremesh/barbedwire.htm class=iron-wires> Barbed Wire</a> |&nbsp;<a href=wiremesh/razor-barbed-wire.htm class=iron-wires>Razor Wire</a> | <a href=wiremesh/gabionbox.htm class=iron-wires>Gabion Box</a> | <a href=wiremesh/weldedwiremeshpanel.htm class=iron-wires>Welded Wire Mesh Panels</a> |  &nbsp;<a href=wiremesh/hexagonalwirenetting.htm class=iron-wires>Hexagonal Wire Mesh</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;
	
}