//JS for E.G. Kantawalla Pvt Ltd
//document.write('<!--[if lt IE 8]-->'); 
//document.write('<script language="JavaScript" type="text/javascript" src="js/IE8.js"></script>');
function showHeader() {
	document.write('<div id="header">');
	document.write('<img src="images/header.jpg" alt="E.G. Kantawalla logo" title="E.G. Kantawalla Private Limited" name="hdrimg">');
//	document.write('<img src="images/header.jpg" alt="E.G. Kantawalla logo" title="E.G. Kantawalla Private Limited" name="hdrimg" onclick="cycle()">');
	document.write('</div>');
}

function showNavbar() {
	
	document.write('<ul id="navbar">');
	document.write('<li><a href="index.php">Home</a></li>');
	document.write('<li><a href="products.html">Products</a></li>');
	document.write('<li><a href="applications.html">Applications</a></li>');
	document.write('<li><a href="gallery.php">Gallery</a></li>');
	document.write('<li><a href="testimonials.html">Testimonials</a></li>');
	document.write('<li><a href="quality.html">Quality</a></li>');
	document.write('<li><a href="about-us.html">About us</a></li>');
	document.write('<li><a href="contact-us.php">Contact us</a></li>');
	document.write('</ul>');
}

function showHeaderNavbar() {
	
	showSearchBar();
	showHeader();
	showNavbar();
	document.write('<div style="clear: both;"></div>');
	
}

// 10aug10-MMM: Added Ahmedabad, Aurangabad, Jaipur & Sangli. Commented Vijaywada
/*
	# Added by - kaustubh dated 19 Aug 2010.
	# Change link names in footer.
*/
function showFooter() {
	document.write('<div id="footer">');
	/*document.write('<a href="contact-us.html#a" title="E.G. Kantawalla, Ahmedabad">Ahmedabad</a>');
	document.write(' | <a href="contact-us.html#au" title="E.G. Kantawalla, Aurangabad">Aurangabad</a>');
	document.write(' | <a href="contact-us.html#b" title="E.G. Kantawalla, Bengaluru">Bengaluru</a>');
	//document.write(' | <a href="contact-us.html#bh" title="E.G. Kantawalla, Bhopal">Bhopal</a>');
	document.write(' | <a href="contact-us.html#c" title="E.G. Kantawalla, Coimbatore">Coimbatore</a>');
	document.write(' | <a href="contact-us.html#h" title="E.G. Kantawalla, Hyderabad">Hyderabad</a>');
	//document.write(' | <a href="contact-us.html#j" title="E.G. Kantawalla, Jaipur">Jaipur</a>');
	document.write(' | <a href="contact-us.html#k" title="E.G. Kantawalla, Kolkata">Kolkata</a>');
	document.write(' | <a href="contact-us.html#l" title="E.G. Kantawalla, Ludhiana">Ludhiana</a>');
	document.write(' | <a href="contact-us.html#m" title="E.G. Kantawalla, Mumbai">Mumbai</a>');
	document.write(' | <a href="contact-us.html#nag" title="E.G. Kantawalla, Nagpur">Nagpur</a>');
	document.write(' | <a href="contact-us.html#n" title="E.G. Kantawalla, Nashik">Nashik</a>');
	document.write(' | <a href="contact-us.html#nd" title="E.G. Kantawalla, New Delhi">New Delhi</a>');
	document.write(' | <a href="contact-us.html#p" title="E.G. Kantawalla, Pune">Pune</a>');
	document.write(' | <a href="contact-us.html#s" title="E.G. Kantawalla, Sangli">Sangli</a>');
	
	*/
	
	//document.write(' | <a href="contact-us.php?c=sangli#" title="E.G. Kantawalla, Sangli">Sangli</a>');
	//document.write('<a href="contact-us.php?c=ahmedabad" title="E.G. Kantawalla, Ahmedabad">Ahmedabad</a>');
	document.write(' | <a href="contact-us.php?c=aurangabad" title="E.G. Kantawalla, Aurangabad">Aurangabad</a>');
	document.write(' | <a href="contact-us.php?c=bengaluru" title="E.G. Kantawalla, Bengaluru">Bengaluru</a>');
	//document.write(' | <a href="contact-us.html#bh" title="E.G. Kantawalla, Bhopal">Bhopal</a>');
	document.write(' | <a href="contact-us.php?c=coimbatore" title="E.G. Kantawalla, Coimbatore">Coimbatore</a>');
	document.write(' | <a href="contact-us.php?c=hyderabad" title="E.G. Kantawalla, Hyderabad">Hyderabad</a>');
	document.write(' | <a href="contact-us.php?c=indapur" title="E.G. Kantawalla,Indapur">Indapur</a>');
	//document.write(' | <a href="contact-us.html#j" title="E.G. Kantawalla, Jaipur">Jaipur</a>');
	document.write(' | <a href="contact-us.php?c=kolkata" title="E.G. Kantawalla, Kolkata">Kolkata</a>');
	document.write(' | <a href="contact-us.php?c=ludhiana" title="E.G. Kantawalla, Ludhiana">Ludhiana</a>');
	document.write(' | <a href="contact-us.php?c=Mumbai" title="E.G. Kantawalla, Mumbai">Mumbai</a>');
	document.write(' | <a href="contact-us.php?c=nagpur" title="E.G. Kantawalla, Nagpur">Nagpur</a>');
	//document.write(' | <a href="contact-us.php?c=nashik" title="E.G. Kantawalla, Nashik">Nashik</a>');
	document.write(' | <a href="contact-us.php?c=delhi" title="E.G. Kantawalla, New Delhi">New Delhi</a>');
	document.write(' | <a href="contact-us.php?c=pune" title="E.G. Kantawalla, Pune">Pune</a>');
	document.write(' | <a href="contact-us.php?c=vapi" title="E.G. Kantawalla, Vapi">Vapi</a>');
	
	


	document.write('<table summary="" style="">')
	document.write('<tr>');
  	document.write('<td style="width:200px;">');
    	document.write('<a href="analytical.html">Analytical Weighing Balances</a><br>');
			
    	document.write('<a href="high-precision.html">aboratory Balances</a><br>');
    	document.write('<a href="precision-hzt.html">Jewellary Weighing Machines</a><br>');
    	document.write('<a href="moisture-analyser.html">Moisture Balances</a><br>');
    	document.write('<a href="economy.html">Economical Weighing Scales</a><br>');
    	document.write('<a href="table-top-abs.html">Tabletop Weighing Machines</a><br>');
  	document.write('</td>');
		document.write('<td style="width:200px;">');
    	document.write('<a href="bench.html">Bench Weighing Scales</a><br>');
    	document.write('<a href="platform-ms.html">Platform M.S. Weighing Machines</a><br>');
    	document.write('<a href="platform-ss.html">Platform S.S. Weighing Scales</a><br>');
    	document.write('<a href="heavy-floor-scale.html">Floor Weighing Machines</a><br>');
    	document.write('<a href="low-profile-ms.html">Low Profile Platform Scales</a><br>');
    	document.write('<a href="platform-count-ss.html">Platform Counting Weighing Machines</a><br>');
  	document.write('</td>');
		document.write('<td style="width:200px;">');
    	document.write('<a href="price-computing.html">Price Computing Weighing Scales</a><br>');
    	document.write('<a href="pallet.html">Pallet Weighing Machines</a><br>');
    	document.write('<a href="platform-ms.html">Flame Proof Weighing Scales</a><br>');
    	document.write('<a href="hanging-al.html">Hanging Weighing Machines</a><br>');
			document.write('<a href="price-computing-hanging.html">Price Computing Hanging Scale</a><br>');
			document.write('<a href="crane.html">Crane Weighing Machines</a><br>');
			
		document.write('</td>');
		document.write('<td style="width:200px;">');
    	document.write('<a href="crane-wireless.html">Wireless Crane Scales</a><br>');
    	document.write('<a href="crane-thermal.html">Thermal Crane Weighing Machines</a><br>');
    	document.write('<a href="milk-weighing.html">Milk Weigher</a><br>');
			document.write('<a href="weigh-bridge.html">Road weighbridge</a><br>');
    	document.write('<a href="pad-weighing-system.html">Pad Weighing Scales</a><br>');
    	document.write('<a href="pad-weighing-system.html">Pit Type Weigh Bridges</a><br>');
    	document.write('<a href="pad-weighing-system.html">Pitless Weigh Bridges</a><br>');
			document.write('<a href="combo-scale-adult-baby.html">Combo Scale - Adult / Baby Weighing</a><br>');
		document.write('</td>');
		document.write('<td style="width:200px;">');
    	document.write('<a href="products.html">Customized Weighing Machines</a><br>');
    	document.write('<a href="products.html#indicators">Indicators</a><br>');
    	document.write('<a href="tank-weighing-kits.html">Tank Weighing Scales</a><br>');
    	document.write('<a href="platform-full-ss.html">Full Stainless Steel Weighing Scale</a><br>');
			document.write('<a href="conversion-kits.html">Conversion Kits</a><br>');
			document.write('<a href="products.html">Load Cells</a><br>');
  	document.write('</td>');
  	document.write('<td style="width:200px;">');
	   	document.write('<a href="retail-printer.html">Cash Register Printer Scale</a><br>');
    	document.write('<a href="barcode-printer-scale.html">Barcode Printer Scale</a><br>');
    	document.write('<a href="products.html#misc">Solar Charger Kit- 4V</a><br>');
    	document.write('<a href="counting.html">Counting Scales</a><br>');
    	document.write('<a href="silver.html">Precision table top Weighing Machines</a><br>');
    	document.write('<a href="table-top-metal.html">Metal Body Table top Scales</a><br>');
		document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</div>');
}

function showFooterOLD() {
	document.write('<div id="footer">');
	document.write('Bangalore | Bhopal | Coimbatore | Hyderabad | Jaipur | Kolkata | Ludhiana | Mumbai | New Delhi | Pune | Vijaywada');
	document.write('</div>');
}

//MMM/17aug10: Modified this, to include the new function
function showLeftbox() {
	document.write('<div class="floatbox">');

	showFeaturedProduct();
	
	document.write('</div>');
	
}

//MMM/17aug10: Added this for solar kit
function showHomeLeftbox(msg) {
	document.write('<div class="floatbox">');

	showFirstFeatureProduct();
	showQuickQueryBox();
	showLoginBox(msg);
	/*showSolarAnim();
	document.write('<p style="font-size: 1.1em; font-weight: bold; text-align: center;">');
	document.write('<a href="products-solar.html" style="color: green;" title="Click to view eco-friendly Eagle weighing scales that operate on solar power">Solar Powered Eagle Weighing Scales</a></p>');
	*/
	document.write('</div>');
}

//MMM/17aug10: Created the function
function showFeaturedProduct() {
	/* Added by - kaustubh dated 29 Sep 2010*/
	showFirstFeatureProduct();
	showQuickQueryBox();
	

}

//MMM/17aug10: Created the function
function showSolarAnim() {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" title="Eagle Eco-friendly Products"');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="200" HEIGHT="100" id="flashslide" ALIGN="">');
	document.write('<PARAM NAME=movie VALUE="images/gosolar.swf">');
	document.write('<PARAM NAME=quality VALUE=high>');
	document.write('<PARAM NAME=scale VALUE=noscale>');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
	document.write('<EMBED src="images/gosolar.swf" quality=high scale=noscale wmode=transparent bgcolor=#FFFFFF  WIDTH="200" HEIGHT="100" NAME="flashslide" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	document.write('</OBJECT>');
}
/* 
 	# Added by - kaustubh dated 13 Sep 2010
	# Make position of Quick query box fixed  
*/
function showQuickQueryBox(){
	document.write('<div id="fixedbox">');
	//document.write('<div id="query_label" style="cursor: pointer;"  onclick="document.getElementById(\'query_box\').style.display=\'block\';document.getElementById(\'query_label\').style.display=\'none\';"><img src="images/quick-query.gif" alt=""></div>');
	document.write('<div id="query_box" style="background:#ffffff;width: 200px; margin-top: 2px;">');
	document.write('<img alt="" src="images/quick-query1.jpg" style="display: block;">');
	document.write('<div style="height: 280px; background: url(images/sideline.gif) repeat-y; text-align: left;">');
	//document.write('<img src="images/no.gif" alt="" align="right"  onclick="document.getElementById(\'query_box\').style.display=\'none\';document.getElementById(\'query_label\').style.display=\'block\';">')
	document.write('<form method="POST" action="form2mail.php" onsubmit="return validate(this)" style="margin: 0;">');
	document.write('<p style="margin-bottom:0;padding-bottom:0;padding-top:0;">Company<br> <input accept="text/plain" type="text" name="Company" id="Company" maxlength="100" style="width: 191px;"></p>');
	document.write('<p style="margin-bottom:0;padding-bottom:0;padding-top:0;">City*<br> <input accept="text/plain" type="text" name="City" id="City" maxlength="100" style="width: 191px;"></p>');
	document.write('<p style="margin-bottom:0;padding-bottom:0;padding-top:0;">Name*<br> <input accept="text/plain" type="text" name="Name" id="Name" maxlength="100" style="width: 191px;"><br></p>');
	document.write('<p style="margin-bottom:0;padding-bottom:0;padding-top:0;">Email*<br> <input accept="text/plain" type="text" name="Email" id="Email" maxlength="100" style="width: 191px;"><br></p>');
	document.write('<p style="margin-bottom:0;padding-bottom:0;padding-top:0;">Phone*<br> <input accept="text/plain" type="text" name="Phone" id="Phone" maxlength="100" style="width: 191px;"><br></p>');
	document.write('<p style="margin-bottom:0;padding-bottom:0;padding-top:0;">Message<br> <textarea cols="21" rows="2" name="Message" id="Message"></textarea><br></p>');
	document.write('<p style="margin-bottom:0;padding-bottom:0;padding-top:0;text-align:center;">');
	document.write('<input type="submit" name="Submit" value="Submit" style="background: #69c; color: #fff; margin: 3px 0;">');
	document.write('</p>');
	document.write('</form>');
	document.write('</div>');
	document.write('<img alt="" src="images/ourpartnersbottom.jpg">');
	document.write('</div>');
	document.write('</div>');
}
function showSearchBar()
{
	/* MMM/6sep10: Added following SEARCH SITE form */
	document.write('<div id="searchbox">');
	document.write('	<form action="search-results.html" id="cse-search-box" style="display:inline;">');
	document.write('    <input type="hidden" name="cx" value="003201577806814683666:7l7vmtbk6ze" />');
	document.write('    <input type="hidden" name="cof" value="FORID:9" />');
	document.write('    <input type="hidden" name="ie" value="UTF-8" />');
	document.write('    <input type="text" name="q" size="17"/>');
	document.write('    <input type="submit" name="sa" value="Search" style="background: #69c; color: #fff; margin: 3px 0;" />');
	document.write('		<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>');
	document.write('	</form>');
	document.write('</div>');
}
function showFirstFeatureProduct()
{
	document.write('<div id="feature_prod" style="width: 200px;">');
	document.write('<img alt="" src="images/featured-product1.jpg" style="display: block;">');
	document.write('<div style=" height:290px;background: url(images/sideline.gif) repeat-y; text-align: center;">');
	document.write('<a href="intelligent-terminal.html">');
	document.write('<img src="images/fp-intelligent-terminal.gif" alt="Intelligent Terminal" title="Intelligent Terminal" style="border: 0;margin-bottom:0;">');
	document.write('</a>');
	document.write('<p style="margin-top:0;"><strong>Intelligent Terminal: </strong>');
	document.write('Comes with features like 3200 token memory, 101 key PC Keyboard Interface, password protection, Inbuilt real time clock.');
	document.write('<br><a href="intelligent-terminal.html">Click for specs</a>');
	document.write('</p>');
	document.write('</div>');
	document.write('<img alt="" src="images/ourpartnersbottom-gray.jpg">');
	document.write('</div>');
}
/*function showProductFirstFeatureProduct()
{
	document.write('<div id="feature_prod" style="width: 200px;">');
	document.write('<img alt="" src="images/featured-product1.jpg" style="display: block;">');
	document.write('<div style="background: url(images/sideline.gif) repeat-y; text-align: center;">');
	document.write('<a href="platform-full-ss.html">');
	document.write('<img src="images/fp-99-memory-counting.gif" height="100px" alt="99 Memory Counting Indicator" title="99 Memory Counting Indicator" style="border: 0;margin-bottom:0;">');
	document.write('</a>');
	document.write('</div>');
	document.write('<img alt="" src="images/ourpartnersbottom-gray.jpg">');
	document.write('</div>');
}*/
/*
	# Added by - kaustubh dated 4 Oct 2010
	# Change both feature products on right side.
*/
/*function showSecondFeatureProduct()
{
	
	document.write('<div class=secondary-fp>');	
	document.write('<h1>High Precision <br><span class=scale>PGW Series</span></h1>');
  document.write('<a href="high-precision.html"><img src="images/fp-crane-weighing-scale.jpg" alt="high precision PGW" title="high precision PGW"  style="margin-left:20px;"></a>');
	document.write('<ul>');
	document.write('<li><img src="images/fp-bullet2.jpg" style="border:0;">&nbsp;&nbsp;3000 to 30000 (kg) ');
	document.write('<li><img src="images/fp-bullet2.jpg" style="border:0;">&nbsp;&nbsp;Built-In battery back up');
	document.write('<li><img src="images/fp-bullet2.jpg" style="border:0;">&nbsp;Remote On/Off weighing <spn style="margin-left:30px;">hook</span>');
	
	//document.write('<li><img src="images/fp-bullet3.jpg" style="border:0;">&nbsp;&nbsp;Weighing Hook With Safety Latch');
	document.write('<li><img src="images/fp-bullet2.jpg" style="border:0;">&nbsp;&nbsp;	In - Built thermalprinter');
	document.write('</ul>');
	document.write('</div>');
	
}*/
function showSecondFeatureProduct()
{
	
	document.write('<div class=secondary-fp>');	
	document.write('<h1>High Precision <br><span class=scale>PGW Series</span></h1>');
  document.write('<a href="intelligent-terminal.html"><img src="images/fp-pgw.jpg" alt="high precision PGW" title="high precision PGW"  style="margin-left:20px;"></a>');
	document.write('<ul>');
	document.write('<li><img src="images/fp-bullet3.jpg" style="border:0;">&nbsp;&nbsp;150,250,450,750 (g) ');
	document.write('<li><img src="images/fp-bullet3.jpg" style="border:0;">&nbsp;&nbsp;Counting function');
	document.write('<li><img src="images/fp-bullet3.jpg" style="border:0;">&nbsp;&nbsp;Large backlight display');
	document.write('<li><img src="images/fp-bullet3.jpg" style="border:0;">&nbsp;&nbsp;16 Standard Units');
	document.write('<li><img src="images/fp-bullet3.jpg" style="border:0;">&nbsp;&nbsp;Pan size: 140 x 140 (mm)');
	document.write('</ul>');
	document.write('</div>');
	
}
function showProductLeftBox()
{
	document.write('<script language="JavaScript" type="text/javascript" src="js/IE8.js"></script>');
	document.write('<style type="text/css">');
	document.write('<!--');
	document.write('#fixedbox');
  document.write('{');
  document.write('width: 202px;');
  document.write('position: absolute;');
	document.write('margin-left:2px;');
	document.write('margin-top:10px;');
	document.write('}');
	
	document.write('@media screen');
  document.write('{');
  document.write('body>div>div>div#fixedbox');
  document.write('  {');
  document.write('  position: fixed;');
  document.write('  }');
  document.write('}');
	document.write('-->');
	document.write('</style>');
	
	document.write('<div class="floatbox">');
	showProductFirstFeatureProduct();
	showQuickQueryBox();
	document.write('</div>');	
	
}
function showLoginBox(msg)
{
	document.write('<div id="query_box" style="width: 200px; padding-top: 1em;">');
	document.write('	<img alt="" src="images/Login.jpg" style="display: block;"><!-- Display block is for IE -->');
	document.write('	<div style="height: 122px; background: url(images/sideline.gif) repeat-y; text-align: left;">');
	document.write('		<form method="POST" id="login" name="login" action="eol/logincheck.php" onsubmit="return validator();" style="margin: 0;">');
  document.write('    	<table cellpadding="3" cellspacing="2" class="input_form" style="font-size:1.1em; margin-top: 0.7em; width: 100%;">');
  document.write('      	<tr>');
  document.write('        	<td><p>Login Id</p></td>');
  document.write('         	<td><input type="text" size="10" maxlength="15" name="loginUsername"></td>');
  document.write('       	</tr>');
  document.write('       	<tr>');
  document.write('        	<td><p>Password</p></td>');
  document.write('         	<td><input type="password" size="10" maxlength="30" name="loginPassword"></td>');
  document.write('       	</tr>');
	document.write('				<tr><td colspan="2" style="font-size:0.8em;color:#FF0000;" align="center"><a href="#" name="login"></a>'+ msg +'</td></tr>');
  document.write('     	</table>');
  document.write('     	<p style="text-align: center; margin: 0;">');
	document.write('		 		<input type="submit" value="Log in" style="background: #69c; color: #fff;">');
	document.write('		 	</p>');
	
  document.write('   	</form>');
	document.write('	</div>');
	document.write('	<img alt="" src="images/ourpartnersbottom.jpg">');
	document.write('</div>');
}

//MMM/15sep10: Moved this function from Home pg to this file, since Quick Query is now accessible from all pages
function validate(passForm) 
{
	//Mandatory fields
	//check for blank city
	if (passForm.City.value == "") 
	{
		alert("Please enter your city!")
		passForm.City.focus()
		return false
	}
	//check for blank name
	if (passForm.Name.value == "") 
	{
		alert("Please enter your name!")
		passForm.Name.focus()
		return false
	}
	//check for blank email
	if (passForm.Email.value == "") 
	{
		alert("Please enter your email address!")
		passForm.Email.focus()
		return false
	}
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(passForm.Email.value)))
	{
		alert("Invalid email address! Please re-enter.")
		passForm.Email.focus()
		return false
	}
	//check for blank phone
	if (passForm.Phone.value == "") 
	{
		alert("Please enter your phone/mobile number!")
		passForm.Phone.focus()
		return false
	}
	return true
}

