function hide_splash(){
	var displaybox=document.getElementById("displaybox");
	var center_div=document.getElementById("center_div");
	displaybox.style.display="none";
	center_div.style.display="none";
	return false;
	
}

function send_registration(formid){		
	$(formid).send({update:'regformdiv',evalScripts:true});
	return false;
}
function send_to_friend(formid){		
	$(formid).send({update:'regformdiv',evalScripts:true});
	return false;
}
function send_addRouteForm(){		
	$('addRouteForm').send({update:'regformdiv'});
	return false;
}
function save_link(){		
	$('contactForm2').send({update:'div_contact_form'});
	return false;
}
function send_mail_form(){		
	$('mail_form').send({update:'regformdiv'});
	return false;
}
function send_moveTopicForm(){		
	$('moveTopicForm').send({methof:'get',update:'regformdiv'});
	return false;
}
function send_login(){		
	$('loginForm').send({update:'login_form_div'});
	return false;
}
function recover_password(){		
	$('recoverForm').send({update:'login_form_div'});
	return false;
}
function send_contact(){		
	$('contactForm2').send({update:'div_contact_form'});
	return false;
}
function send_tickList(){		
	$('tickForm').send({update:'regformdiv'});
	return false;
}
function recover_pwd(uid){
	new Ajax('/ajax_calls/recover_pwd.asp?uid='+uid, {method: 'get',update:'regformdiv'}).request();
	return false;
}

function do_action(action_url,resultDiv){
	new Ajax(action_url, {method: 'get',update:resultDiv}).request();
	return false;
}

function showHideSearch(sport,bloc,artif){		
	if(sport){
		document.getElementById('escalade').style.display='';
	}else{
		document.getElementById('escalade').style.display='none';
	}
	if(bloc){
		document.getElementById('bloc').style.display='';
	}else{
		document.getElementById('bloc').style.display='none';
	}
	if(artif){
		document.getElementById('artif').style.display='';
	}else{
		document.getElementById('artif').style.display='none';
	}
}
var doneAllready=false;
function clearField(el){
	
	if (!doneAllready){
		el.value='';
		doneAllready = true;
		}
	
}

//Popup function
// Link example:
//<a href="pageLink.asp" onclick="popUp(this.href,'console',600,600,'windowName',150,100);return false;" target="_blank">This is my link</a>
var newWin = null;
function popUp(strURL, strType, strHeight, strWidth, strName, leftValue, topValue) {
if (newWin != null && !newWin.closed)
	newWin.close();  
	var strOptions="";
	if (strType=="console")    
	strOptions="resizable,scrollbars,left="+leftValue+",top="+topValue+",height="+
		strHeight+",width="+strWidth;  
	if (strType=="consoleScroll")    
	strOptions="resizable,scrollbars,left="+leftValue+",top="+topValue+",height="+
		strHeight+",width="+strWidth; 
	if (strType=="fixed")
		strOptions="status,left="+leftValue+",top="+topValue+",height="+      
			strHeight+",width="+strWidth;  
	if (strType=="elastic")
		strOptions="toolbar,menubar,scrollbars,"+
			"resizable,left="+leftValue+",top="+topValue+",location,height="+      
			strHeight+",width="+strWidth;
	newWin = window.open(strURL, strName, strOptions);  
	newWin.focus();
	return false;
}
