function ChangePos(NewValue)
{
	Pos = document.getElementById('Pos');		
	Pos.value = parseInt(NewValue);
}
function open_win(file,wid,hei)
{
	window.open(file,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=yes, width="+parseInt(wid)+", height="+parseInt(hei))
}

function ShowAccType(type)
{
	//alert(type);
	div = document.getElementById('agentie');
	if(type == 'f') div.style.display = 'block';
	else div.style.display = 'none';
}
function ShowSearch()
{		
	divTip = document.getElementById('sTip');
	Tip = divTip.value;
	
	divSearchAp = document.getElementById('searchAp');
	divSearchT = document.getElementById('searchT');
	divSearchCSH = document.getElementById('searchCSH');
		
	
	divSearchAp.style.display = 'none';
	divSearchT.style.display = 'none';
	divSearchCSH.style.display = 'none';
			
					
	if(Tip == 'a') divSearchAp.style.display = 'block';
	if(Tip == 't') divSearchT.style.display = 'block';
	if(Tip == 'c') divSearchCSH.style.display = 'block';
	if(Tip == 's') divSearchCSH.style.display = 'block';
	if(Tip == 'r') divSearchCSH.style.display = 'block';

}
function ShowUser(divID)
{		
	divUser = document.getElementById(divID);
	
	if(divUser.style.display == 'none')	divUser.style.display = 'block';
	else divUser.style.display = 'none';
}
function getConfirm(message, url) 
{
	if (confirm(message)) {
		window.location = url;
	}
}

function postConfirm(message) {
	if (confirm(message) == false) {
		return false;
	}
}