	
	
	
	
	function switchLang(lang)
	{
		var the_url = document.URL;
		
		//Le indexOf et le replace gre mal le case Sensitive alors on met tout en lowercase
		the_url = the_url.toLowerCase();
		
		if (the_url.indexOf("/en/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))en\1/gi, "$1" + lang + "$1");	
		}	
		else if (the_url.indexOf("/ja/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))ja\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/ko/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))ko\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/zh/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))zh\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/zt/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))zt\1/gi, "$1" + lang + "$1");
		}
		else if (the_url.indexOf("/fr/", 0)!=-1){
			document.location = the_url.replace(/((?:\/)|(?:%2F))fr\1/gi, "$1" + lang + "$1");
		}
		else {
		}	
	}

	function showHideDiv(cid){
		
		if(document.getElementById(cid).style.display == "none")
		{
				document.getElementById(cid).style.display = "";
		}
		else
		{
				document.getElementById(cid).style.display = "none";
		}
	}


	function expandcontent(curobj, cid, altID, lblShow, lblHide){
		if (ccollect.length>0){	
			if(document.getElementById(cid).style.display == "none")
			{
					document.getElementById(cid).style.display = "";
					curobj.innerHTML = "<div class='seeAnswer'>" + lblHide + " <img src='/zaia/includes/images/helpUpArrow.gif'></div>";
					postQuestion(altID);
			}
			else
			{
					document.getElementById(cid).style.display = "none";
					curobj.innerHTML = "<div class='seeAnswer'>" + lblShow + " <img src='/zaia/includes/images/helpDownArrow.gif'></div>";
			}
		
		}
	}

	
function querySt(strScanVar){
	strParams = window.location.search.substring(1);
	arrParams = strParams.split("&");
	for (i=0; i < arrParams.length; i++) {
		strVar = arrParams[i].split("=");
		if (strVar[0] == strScanVar) {
			return strVar[1];
		}
	}
}