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