/*
 *  2008.July.08
 *  For Arc Website
 *  Include Header,MainMenu,Footer and Feedback function
 *  
 */

function createheader() {
	    document.write("<link   rel='Shortcut Icon'   href='_images/favicon.ico'   />");
       	document.write("     <a href='index.html'><img src='_images/logo.jpg' alt='ARC Limited' class='logo' /></a></td>");		
		document.write(" <td align='left' valign='bottom'><table width='100%' border='0' cellspacing='0' cellpadding='0'>");	
		document.write("  <tr>");	
		document.write("<td colspan='2'>&nbsp;</td>");	
		document.write("  </tr>");	
		
		document.write("		 <tr>");	
		document.write("<td height='35' align='right'><a href='sitemap.html' target='_blank'><font color='#990000'>Site Map</font></a> <font color='#ccc'>| </font><a href='sitefeedback.html' target='_blank'> <font color='#990000'>Feedback</font></a></td>");	
		document.write("<td width='48'>&nbsp;</td>");	
		document.write(" </tr>");	
		document.write("</table></td>");	
		document.write("</tr>");	
		document.write("<tr>");	
		document.write("  <td colspan='2' class='menuBg' > ");	
	
}

function createmenu(){
	var amenu = new Array (
						   new Array(
									 "HOME",
									 "index.html"
									 ),
						   new Array(
									 "COMPANY",
									 "company.html"
									 ),
						   new Array(
									 "PRODUCTS",
									 "products.html"
									 ),
						   new Array(
									 "TECHNICAL",
									 "technical.html"
									 ),
						   new Array(
									 "PROJECTS",
									 "projects.html"
									 ),
						   new Array(
									 "CUSTOMER SUPPORT",
									 "customersupport.html"
									 ),
						   new Array(
									 "CAREERS",
									 "careers.html"
									 )
						   )
	

		
		
		for (i=0;i<7;i++){
		document.write("  <a class='menuPos' href=" + amenu[i][1] + ">" + amenu[i][0] + "</a>");
		}

}


function createfooter() {
	var afooter = new Array(
						new Array (
								   "Home |",
								   "index.html"
								   ),
						new Array (
									"Company |",
									"company.html"
									),
						new Array (
									"Products |",
									"products.html"
									),
						new Array (
									"Projects |",
									"projects.html"
									),
						new Array (
									"Customer Support |",
									"customersupport.html"
									),
						new Array (
									"Careers |",
									"careers.html"
									),
						new Array (
									"Technical |",
									"technical.html"
									),
						new Array (
									"LEED |",
									"leed.html"
									),
						new Array (
									"GFRC |",
									"gfrcinfo.html"
									),
						new Array (
									"Site Feedback",
									"sitefeedback.html"
									)
						
						);

	for (i=0;i<10;i++){
		if ( i != 9 )
			document.write(" <a class='footerNav'  href=" + afooter[i][1] + ">" + afooter[i][0] + "</a>");
    	else
		   document.write(" <a class='footerNav' style='color:#990000;font-weight:bold;' href=" + afooter[i][1] + ">" + afooter[i][0] + "</a>");
	}
}


function geturl(){
  var surl = (document.referrer == "") ? "Please fill up the URL":document.referrer;
  document.getElementById("PAGE_URL").value = surl;

}

function checkinput(){
  var  obj = document.getElementById("commentform");
  var osubject = document.getElementById("subject").value;
  osubject = (osubject == "") ? "Arc Website Feedback": osubject;
  
  if (document.getElementById("SENTER_COMMENT").value == "" )
	 alert("Please fill up the comment.")
  else
  {
  	 obj.action = "send.php";
     obj.submit();
	 }
}


function clearform(){
	  var  obj = document.getElementById("commentform");
	  obj.reset();

}
