function header(){
	document.write("<table width='800' cellspacing='0' cellpadding='0' border='0'>"+
		"<tr><td bgcolor='#00386E' width='100%' colspan='3'>&nbsp;</td></tr>"+
		"<tr>"+
			"<td bgcolor='#00386E' width='30%'><img src='img/header.jpg'></td>"+
			"<td width='70%' colspan='2' vAlign='top'>"+
				"<table width='100%' cellspacing='0' cellpadding='0'>"+
					"<tr><td width='100%'><img src='img/grey-bar.gif' width='100%'  height='10'></td></tr>"+
					"<tr><td width='100%'><img src='img/grey1-bar.gif' width='100%' height='10'></td></tr>"+
					"<tr><td width='100%'><img src='img/grey2-bar.gif' width='100%' height='10'></td></tr>"+
					"<tr><td align='center' colspan='2'><img src='img/hemadhu-texchem.gif'></td></tr>"+
				"</table>"+
			"</td>"+
		"</tr>"+
		"<tr>"+
			"<td bgcolor='#00386E' colspan='2' width='70%'>&nbsp;</td>"+
			"<td width='30%'><img src='img/bars.gif' width='100%' height='25'></td>"+
		"</tr>"+
		"<tr>"+
			"<td align='right'>&nbsp;</td>"+
			"<td colspan='2'>"+
				"<table width='100%' cellspacing='0' cellpadding='0'>"+
					"<tr>"+
						"<td align='right' ><img src='img/grey-0.gif'></td>"+
						"<td bgcolor='#7C9DC0' width='90%'>&nbsp;</td>"+
					"</tr>"+
				"</table>"+
			"</td>"+
		"</tr>"+
	"</table>");
	document.write("<table width='800' cellspacing='0' cellpadding='0'>"+
		"<tr>"+
			"<td width='25%' align='center' vAlign='top'>"+
				"<table width='100%'>"+
					"<tr>"+
						"<td width='100%' bgcolor='#5C81AA' vAlign='top' align='center'>"+
							"<table width='90%' bgcolor='#9DB5D1'>"+
								"<tr><td width='100%' bgcolor='#D2DFEA' vAlign='top' align='center'>"+
									"<table width='90%'>"+
										"<tr><td width='100%' bgcolor='#9DB5D1' align='center' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#9DB5D1'>"+
											"<a href='index.htm' style='text-decoration:none'><font color='#000000' face='Arial' size='2'><b>Home</b></font></a>"+
										"</td></tr>"+
									"</table>"+
									"<table width='90%'>"+
										"<tr><td width='100%' bgcolor='#9DB5D1' align='center' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#9DB5D1'>"+
											"<a href='Contact.htm' style='text-decoration:none'><font color='#000000' face='Arial' size='2'><b>Contact Us</b></font></a>"+
										"</td></tr>"+
									"</table>"+
									"<table width='90%'>"+
										"<tr><td width='100%' align='center'>"+
											"&nbsp;"+
										"</td></tr>"+
									"</table>"+
									"<table width='90%'>"+
										"<tr><td width='100%' bgcolor='#9DB5D1' align='center' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#9DB5D1'>"+
											"<a href='PthalogenBlue.htm' style='text-decoration:none'><font color='#000000' face='Arial' size='2'><b>Pthalogen Blue</b></font></a>"+
										"</td></tr>"+
										"<tr><td width='100%' bgcolor='#9DB5D1' align='center' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#9DB5D1'>"+
											"<a href='AcidDyesIntermediates.htm' style='text-decoration:none'><font color='#000000' face='Arial' size='2'><b>Acid Dyes and Intermediates</b></font></a>"+
										"</td></tr>"+
									"</table>"+
									"<table width='90%'>"+
										"<tr><td width='100%' bgcolor='#9DB5D1' align='center' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#9DB5D1'>"+
											"<a href='Binders.htm' style='text-decoration:none'><font color='#000000' face='Arial' size='2'><b>Textile Dyeing & Printing Chemicals</b></font></a>"+
										"</td></tr>"+
									"</table>"+
									"<table width='90%'>"+
										"<tr><td width='100%' bgcolor='#9DB5D1' align='center' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#9DB5D1'>"+
											"<a href='Adhesives.htm' style='text-decoration:none'><font color='#000000' face='Arial' size='2'><b>Adhesives and Glues</b></font></a>"+
										"</td></tr>"+
									"</table>"+
									"<table width='90%'>"+
										"<tr><td width='100%' bgcolor='#9DB5D1' align='center' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#9DB5D1'>"+
											"<a href='Fabric.htm' style='text-decoration:none'><font color='#000000' face='Arial' size='2'><b>Finishing Fabric Chemicals</b></font></a>"+
										"</td></tr>"+
									"</table>"+									
								"</td></tr>"+
							"</table>"+
						"</td>"+
					"</tr>"+
				"</table>"+
				"<br><img src='img/logo.gif'><br><font size='1' color='#000099' face='Arial'>Hemadhu Texchem <br>Textile Auxillaries and Adhesives</font>"+
			"</td>"+
			"<td width='75%' bgcolor='#D2DFEA'>");
}

function footer(){
	document.write("</td>"+
		"</tr>"+
	"</table>");
	document.write("<p align='center'><font size='1' face='Arial'>Copyrights &copy; 2002 Hemadhu Texchem Industries &reg; All Rights Reserved <br> Designed Developed and Maintained by <a target='_blank' href='http://lagoSmart.net'>lagoSmart.net</a><br>Concept: Rajesh Murarka</font></p>");
}

function check() {
	if (document.frmContact.Name.value==''){
		alert('All Fields are Mandatory. Please Enter Your Name'); document.frmContact.Name.focus();
	}else if (document.frmContact.Phone.value=='') {
		alert('All Fields are Mandatory. Please Enter Your Contact Information'); document.frmContact.Phone.focus(); 
	}else if (document.frmContact.Email.value=='') { 
		alert('All Fields are Mandatory. Please Enter Your Email Address'); document.frmContact.Email.focus(); 
	}else if (document.frmContact.Query.value=='') { 
		alert('All Fields are Mandatory. Please Enter your Text'); document.frmContact.Query.focus(); 
	}else { 
		checkEmail(document.frmContact.Email.value);
	}
}
	
function checkEmail(value) { 
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(value)) {
		document.frmContact.submit(); } else  { alert('Invalid E-mail Address! Please re-enter.'); document.frmContact.Email.focus(); return; 
	}
}

function mail(){
	var a = "i n f o @ h e m a d h u . c o m";
	var b = "<br><br>Or reach us at: <br>2, Prabhat, <br>Walji Ladha Road, <br>Mulund (w), <br>Mumbai 400 080 <br><br>Telefax: (91) (22) 25611225";
	document.write("<tr> <td width='100%' valign='top' colspan='2'><b><font face='Verdana' size='1' color='#0D006A'>You can also mail us at:<br> <a href='mailto:"+a+"'><font face='Verdana' size='1' color='#0D006A'>"+a+"</font></a> <br>"+b+"</font></b> </td></tr>");	
}
