function formsubmit(obj){
		//alert('action '+obj);
		document.form1.action = obj;
		document.form1.submit();
	}
	function login(){
		document.loginform.submit();
	}
	function logout(){
		document.logoutform.submit();
	}
	function submitform2(obj){
		document.form2.action = obj;
		document.form2.submit();
	}
	
	function submitform3(obj){
		document.form3.action = obj;
		document.form3.submit();
	}
	
	function clearPresentation(){
		document.form3.reset();
	}
	
	function changeImg(obj) {
		document.getElementById("continueImg").src = obj;
	}
	
	function changeBack(obj) {
		document.getElementById("continueImg").src = obj;
	}
	
	function changeImg1(obj) {
		document.getElementById("saveImg").src = obj;
	}
	
	function changeBack1(obj) {
		document.getElementById("saveImg").src = obj;
	}
	
	function fnclear(field)
	{
		field.value="";
		document.form3.presentationFile.outerHTML='<input name="presentationFile" type="file" style="width:250px;">';
	}
	
	function clearField(field)
	{
		field.value="";
		document.form3.helpDocuments.outerHTML='<input name="helpDocuments" type="file" style="width:250px;">';
	}
	
	function clearAttachment()
	{
		document.ContactUs.attachment.outerHTML='<input name="attachment" type="file">';
	}
	
	function changeState()
	{
 		var selectedItem = document.getElementById("region2");
 		var selectedInd = selectedItem.selectedIndex;
 		document.getElementById("state").value=document.getElementById("state").options[selectedInd].value;
 		if(document.getElementById("stateValue").value==null || 
 		document.getElementById("stateValue").value=="")
 			document.getElementById("stateValue").value=document.getElementById("state").options[selectedInd].value;
	}
	

function appendLang(obj) {
	var str = location.href;
	if(obj=='es' && str.indexOf("?lang=es#")>0){
		str=str.replace(/lang=es#/,"lang=es");
		str=str.replace(/es/,"es");
		location.href = str;
	}
	else if(obj=='en' && str.indexOf("?lang=en#")>0){
		st=str.replace(/lang=en#/,"lang=en");
		str=str.replace(/en/,"en");
		location.href = str;
	}
	else if(obj=='en' && str.indexOf("?lang=es#")>0){
		str=str.replace(/lang=es#/,"lang=en");
		str=str.replace(/es/,"en");
		location.href = str;		
	}
	else if(obj=='es' && str.indexOf("?lang=en")>0)
	{
		str=str.replace(/lang=en/,"lang=es");
		str=str.replace(/en/,"es");
		location.href = str;
	}
	else if(obj=='es' && str.indexOf("?lang=es")>0){
		str=str.replace(/lang=es/,"lang=es");
		str=str.replace(/es/,"es");
		location.href = str;
	}
	else if(obj=='en' && str.indexOf("?lang=en")>0){
		str=str.replace(/lang=en/,"lang=en");
		str=str.replace(/en/,"en");
		location.href = str;
	}
	else if(obj=='en' && str.indexOf("?lang=es")>0){
		str=str.replace(/lang=es/,"lang=en");
		str=str.replace(/es/,"en");
		location.href = str;
	}
	else if(obj=='en')
	{
		str=str.replace(/es/,"en");
		location.href=str+'?lang=en';
	}	
	else if(obj=='es')
	{
		str=str.replace(/en/,"es");
		location.href=str+'?lang=es';
	}			
}


function changeFootImageb1(obj){
	document.getElementById("banner1").src = obj;
}

function changeFootImageBackb1(obj){
	document.getElementById("banner1").src = obj;
}

function changeFootImageb2(obj){
	document.getElementById("banner2").src = obj;
}

function changeFootImageBackb2(obj){
	document.getElementById("banner2").src = obj;
}

function changeFootImageb3(obj){
	document.getElementById("banner3").src = obj;
}

function changeFootImageBackb3(obj){
	document.getElementById("banner3").src = obj;
}

function changeFootImageb4(obj){
	document.getElementById("banner4").src = obj;
}

function changeFootImageBackb4(obj){
	document.getElementById("banner4").src = obj;
}

function changeFootImageb5(obj){
	document.getElementById("banner5").src = obj;
}

function changeFootImageBackb5(obj){
	document.getElementById("banner5").src = obj;
}
function changeFootImageb6(obj){
	document.getElementById("banner6").src = obj;
}

function changeFootImageBackb6(obj){
	document.getElementById("banner6").src = obj;
}

function changeFootImageb7(obj){
	document.getElementById("banner7").src = obj;
}

function changeFootImageBackb7(obj){
	document.getElementById("banner7").src = obj;
}

function changeFootImageb8(obj){
	document.getElementById("banner8").src = obj;
}

function changeFootImageBackb8(obj){
	document.getElementById("banner8").src = obj;
}

function changeFootImageb9(obj){
	document.getElementById("banner9").src = obj;
}

function changeFootImageBackb9(obj){
	document.getElementById("banner9").src = obj;
}

function changeFootImageb10(obj){
	document.getElementById("banner10").src = obj;
}

function changeFootImageBackb10(obj){
	document.getElementById("banner10").src = obj;
}

function changeFootImageb11(obj){
	document.getElementById("banner11").src = obj;
}

function changeFootImageBackb11(obj){
	document.getElementById("banner11").src = obj;
}

function changeFootImageb12(obj){
	document.getElementById("banner12").src = obj;
}

function changeFootImageBackb12(obj){
	document.getElementById("banner12").src = obj;
}

function changeFootImageb13(obj){
	document.getElementById("banner13").src = obj;
}

function changeFootImageBackb13(obj){
	document.getElementById("banner13").src = obj;
}

function changeFootImageb14(obj){
	document.getElementById("banner14").src = obj;
}

function changeFootImageBackb14(obj){
	document.getElementById("banner14").src = obj;
}

function changeFootImageb15(obj){
	document.getElementById("banner15").src = obj;
}

function changeFootImageBackb15(obj){
	document.getElementById("banner15").src = obj;
}

function changeFootImageb16(obj){
	document.getElementById("banner16").src = obj;
}1

function changeFootImageBackb16(obj){
	document.getElementById("banner16").src = obj;
}

function changeFootImageb17(obj){
	document.getElementById("banner17").src = obj;
}

function changeFootImageBackb17(obj){
	document.getElementById("banner17").src = obj;
}

function changeFootImageb18(obj){
	document.getElementById("banner18").src = obj;
}

function changeFootImageBackb18(obj){
	document.getElementById("banner18").src = obj;
}

function changeFootImageb19(obj){
	document.getElementById("banner19").src = obj;
}

function changeFootImageBackb19(obj){
	document.getElementById("banner19").src = obj;
}
function changeFootImageb20(obj){
	document.getElementById("banner20").src = obj;
}

function changeFootImageBackb20(obj){
	document.getElementById("banner20").src = obj;
}
function changeFootImageb21(obj){
	document.getElementById("banner21").src = obj;
}

function changeFootImageBackb21(obj){
	document.getElementById("banner21").src = obj;
}
function changeFootImageb22(obj){
	document.getElementById("banner22").src = obj;
}

function changeFootImageBackb22(obj){
	document.getElementById("banner22").src = obj;
}
function changeFootImageb30(obj){
	document.getElementById("banner30").src = obj;
}

function changeFootImageBackb30(obj){
	document.getElementById("banner30").src = obj;
}
