var pic1= new Image(100,25);
var pic2= new Image(100,25);

var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i;
//var blockedEmailIds = new Array("accenture", "gmail", "hotmail","rediffmail", "infosys","wipro","patni","tcs","cognizant","satyam");
var blockedEmailIds = new Array("fdsfds");
function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;
}

var objTabContent, objTab, objCurTab;
var curtab=0;
var closetab=0, tmpclosetab=0, transtimer=0;

//var rootpath="http://fs4/hcltech/"
var rootpath="http://www.hcl-axon.com/";

function changeTab(tabid) {
	closetab=0;
	stop_timer();

	if (curtab==tabid) return;
	objTabContent=document.getElementById("tabcontent");
	if (curtab==0) {
		objTabContent.style.display="";
		objTabContent.style.visibility="visible";
	}
	objTab=document.getElementById("mnuTab"+tabid);
	objCurTab=document.getElementById("mnuTab"+curtab);
	objTabContent.innerHTML="";
	objTabContent.style.height="289px";
	switch(tabid) {
		case 1:
			objTabContent.innerHTML+="<div class='tnav_box'><div class='heading i_services'><span class='hd'>Industry Sectors</span></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"industry-sectors/aerospace-defense/'>Aerospace and Defense</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/construction-mining/'>Construction and Mining</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/hitech-manufacturing/'>Hi-Tech &amp; Manufacturing</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/government/'>Government</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/travel-logistics/'>Travel, Transportation &amp; Logistics</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/oil-gas/'>Oil & Gas</a></li></ul></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"industry-sectors/automotive/'>Automotive</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/consumer/'>Consumer</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/lifescience-healthcare/'>Life Sciences &amp; Healthcare</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/retail/'>Retail</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/professional_services/'>Professional Services</a></li></ul></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"industry-sectors/chemicals/'>Chemicals</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/financial_services/'>Financial Services</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/media-entertainment/'>Media &amp; Entertainment</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/telecommunications/'>Telecommunications</a></li><li class='l1'><a href='"+rootpath+"industry-sectors/utilities/'>Utilities</a></li></ul></div>";
			break;
		case 2:
			objTabContent.innerHTML+="<div class='tnav_box bg_services'><div class='heading i_is'><span class='hd'>Services</span></div><div class='mnulist_1c'><ul><li class='l1'><a href='"+rootpath+"services/business-consulting/'>Business Consulting</a></li><li class='l1'><a href='"+rootpath+"services/solution-implementation/'>Solutions Implementation</a></li><li class='l1'><a href='"+rootpath+"services/application-management/'>Application Management</a></li><li class='l1'><a href='"+rootpath+"services/blue-ocean-upgrades/'>Blue Ocean Upgrades </a></li><li class='l1'><a href='"+rootpath+"services/SAP-integration-services/'>SAP Integration Services</a></li><li class='l1'><a href='"+rootpath+"services/HCL-AXON-academy/'>SAP Solution Academy</a></li></ul></div>";
			break;

		case 3:
			objTabContent.innerHTML+="<div class='tnav_box'><div class='heading i_geo'><span class='hd'>Industry Insights</span></div><div class='mnulist_2c'><ul><li class='l1'><a href='"+rootpath+"industry-insights/business-transformation/'>Business Transformation</a></li><li class='l1'><a href='"+rootpath+"industry-insights/customer-relationship-management/'>Customer Relationship Management</a></li><li class='l1'><a href='"+rootpath+"industry-insights/human-capital-transformation/'>Human Capital Transformation</a></li><li class='l1'><a href='"+rootpath+"industry-insights/profit-management/'>Profit Management and Cost Reduction</a></li><li class='l1'><a href='"+rootpath+"industry-insights/world-class-finance/'>World Class Finance</a></li></ul></div><div class='mnulist_2c'><ul><li class='l1'><a href='"+rootpath+"industry-insights/change-management/'>Change Management</a></li><li class='l1'><a href='"+rootpath+"industry-insights/enterprise-performance-management/'>Enterprise Performance Management</a></li><li class='l1'><a href='"+rootpath+"industry-insights/leadership-development/'>Leadership Development</a></li><li class='l1'><a href='"+rootpath+"industry-insights/supply-chain-management/'>Supply Chain Management</a></li><li class='l1'><a href='"+rootpath+"industry-insights/IS-strategy/'>IS Strategy</a></li></ul></div><div class='clear'></div>";
			break;
			
		case 4:
			objTabContent.innerHTML+="<div class='tnav_box'><div class='heading i_everything'><span class='hd'>SAP Application Competencies</span></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"SAP-application-competencies/customer-relationship-management/'>Customer Relationship Management</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/enterprise-resource-planning/'>Enterprise Resource Planning</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/supplier-relationship-management/'>Supplier Relationship Management</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/master-data-management/'>Master Data Management</a></li> <li class='l1'><a href='"+rootpath+"SAP-application-competencies/manufacturing/'>Manufacturing</a></li></ul></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"SAP-application-competencies/enterprise-performance-management/'>Enterprise Performance Management</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/human-capital-management/'>Human Capital Management</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/product-lifecycle-management/'>Product Lifecycle Management</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/governance-risk-compliance/'>Governance, Risk and Compliance</a></li></ul></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"SAP-application-competencies/supply-chain-management/'>Supply Chain Management</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/world-class-finance/'>World class Finance </a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/asset-management/'>Service &amp; Asset Management</a></li><li class='l1'><a href='"+rootpath+"SAP-application-competencies/integrated-application-operations/'>Integrated Application Operations</a></li></ul></div><div class='clear'></div>";
			break;
			
		default:
			objTabContent.innerHTML+="<div class='tnav_box bg_related'><div class='heading i_search'><span class='hd'>Related Links</span></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"about-us/'>About HCL AXON</a></li><li class='l1'><a href='"+rootpath+"about-us/HCL-Technologies.asp'>About HCL</a></li><li class='l1'><a href='"+rootpath+"careers/index.asp'>Careers</a></li><li class='l1'><a href='"+rootpath+"global-delivery-capabilities/europe.asp'>Global Delivery Capabilities</a></li><li class='l2'><a href='"+rootpath+"global-delivery-capabilities/Europe.asp'>Europe</a>, <a href='"+rootpath+"global-delivery-capabilities/US.asp'>US</a>, <a href='"+rootpath+"global-delivery-capabilities/africa.asp'>Africa</a>, <a href='"+rootpath+"global-delivery-capabilities/APJ.asp'>Asia Pacific and Japan</a>, <a href='"+rootpath+"global-delivery-capabilities/ANZ.asp'>Australia & New Zealand</a>, <a href='"+rootpath+"global-delivery-capabilities/India.asp'>India</a></li></ul></div><div class='mnulist_3c'><ul><li class='l1'><a href='"+rootpath+"investors/'>Investors</a>&nbsp;&nbsp;<a href='http://feeds.feedburner.com/HCLAXON'><img src='"+rootpath+"images/rss_bttn_small.gif' alt='RSS Feed' style='border: none;' /></a></li><li class='l1'><a href='"+rootpath+"media/'>News &amp; Media</a>&nbsp;&nbsp;<a href='http://feeds.feedburner.com/HCLAXON'><img src='"+rootpath+"images/rss_bttn_small.gif' alt='RSS Feed' style='border: none;' /></a></li><li class='l1'><a href='"+rootpath+"events/'>Events</a></li><li class='l1'><a href='"+rootpath+"webinars/'>Webinars</a></li><li class='l1'><a href='http://www.hcltech.com/insighthcl/' target='blank'>Analysts and Advisors</a></li><li class='l1'><a href='"+rootpath+"about-us/HCL-Axon-international.asp'>Alliances</a></li></ul></div><div class='clear'></div>";

	}
	objTab.className+=" over";
	if (curtab>0) {
		objCurTab.className=objCurTab.className.replace(" over", "");
	}
	curtab=tabid;
}

function closeme() {
	closetab=1;
	tmpclosetab=0;
	closethistab();
}

function closethistab() {
	transtimer=setTimeout("closethistab()",10);
	if (!closetab) {
		stop_timer();
	} else {
		if (tmpclosetab<100) {
			tmpclosetab++;
		} else {
			stop_timer();
			objTabContent=document.getElementById("tabcontent");
			objCurTab=document.getElementById("mnuTab"+curtab);
			objCurTab.className=objCurTab.className.replace(" over", "");
			objTabContent.style.display="none";
			objTabContent.style.visibility="hidden";
			curtab=0;
		}
	}
}

function stop_timer() {
	clearTimeout(transtimer); transtimer=0;
	tmpclosetab=0;
	closetab=0;
}

function talktome() {
		if ($("txtname").value.replace(/^\s*|\s*$/g,"")==""){
			alert ("Enter your Name");
			$("txtname").focus();
			return;
		} else if (emailfilter.test($("txtemailid").value)==false) {
			alert ("Enter valid E-Mail ID");
			$("txtemailid").focus();
			return;
		} else if ($("txtphone").value.replace(/^\s*|\s*$/g,"")==""){
			alert ("Enter your Contact No.");
			$("txtphone").focus();
			return;
		} else if ($("txtcomments").value.replace(/^\s*|\s*$/g,"")==""){
			alert ("Enter your comments");
			$("txtcomments").focus();
			return;
		}

		document.frmttm.submit();
	}

function show_content(){
		navRoot = document.getElementById("more_content");
	if (navRoot.className=="hidden_content"){
		navRoot.className="show_content";
	}
	else if (navRoot.className=="show_content"){
		navRoot.className="hidden_content";
		}
}

function collapse(hd,des){
	if ($(hd).className=="hd expand") {
		$(hd).className="hd collapse";
		$(des).className="bnlnk over";
	} else {
		$(hd).className="hd expand";
		$(des).className="bnlnk";
	}
}


//Functions for display or hide a object
function showmore(objid, objmore, objless) {
	$(objid).style.display="block";
	$(objmore).style.display="none";
	$(objless).style.display="";
}

function showless(objid, objmore, objless) {
	$(objid).style.display="none";
	$(objmore).style.display="";
	$(objless).style.display="none";
}
/* END */

//Code for Right Navigation
function resetRNTab() {
	var v = document.getElementById("txtpageinfo").value;
	splitvalues = v.split("|");
	if (document.getElementById("rnav"+splitvalues[0])) {
		changeRNTab(splitvalues[1],splitvalues[2]);
		document.getElementById("rnav"+splitvalues[0]).className+=" active";
	}
}

function changeRNTab(actTabId, hideTabId) {
	if (actTabId==0 || hideTabId==0) return;
	var actTab=document.getElementById("rntab"+actTabId);
	var hideTab=document.getElementById("rntab"+hideTabId);
	if (actTab.className=="active") return;
	actTab.className="active";
	hideTab.className="";

	var actContent=document.getElementById("rncontent"+actTabId);
	var hideContent=document.getElementById("rncontent"+hideTabId);

	actContent.className="active";
	hideContent.className="";
}
window.onload=resetRNTab;