function ShowHide(toShow, toHide, toActive, toInActive){
	
	ActiveTab=document.getElementById(toActive);
	InActiveTab=document.getElementById(toInActive);
	
	LayertoShow = document.getElementById(toShow);
	LayertoHide = document.getElementById(toHide);
	
	LayertoShow.style.display = 'block'; 
	LayertoHide.style.display = 'none'; 
	ActiveTab.className='selected'
	InActiveTab.className=''
	
}

function popupOpen (URL, ToWidth, ToHeight) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=1, width=' + ToWidth + ',height=' + ToHeight +', top='+eval((screen.availHeight - ToHeight) / 3)+',left='+eval((screen.availWidth - ToWidth) / 2));");
}

function check(tocheckTerms){
	document.forms['form_Promotion'].checkTerms.disabled = false;
	document.forms['form_Promotion'].checkTerms.checked = true;
}