
function topOver(obj) {
	//var dummyObj = document.getElementById(obj)
	//obj.style.color = '#000000';
	document.all(obj).style.backgroundColor = '#EBF2FA';
}

function topOut(obj) {
	//var dummyObj = document.getElementById(obj)
	//obj.style.color = '#FFFFFF';
	document.all(obj).style.backgroundColor = '';
}

function searchOver(obj) {
	obj.style.color = '#FFFFFF';
	obj.style.backgroundColor = '#4F83B2';
}

function searchOut(obj) {
	obj.style.color = '#4F83B2';
	obj.style.backgroundColor = '';
}

function showHideObj(obj) {
	var oobj = document.all(obj)
	if (oobj.style.display == 'none') {
		oobj.style.display = 'inline';
	} else {
		oobj.style.display = 'none';
	}
}

function doInnerText(name, text) {
	var obj = document.all(name);
	obj.innerText = text;
}

function popImage(sUrl) {
	window.open("/procudan/Popimg.aspx?image="+sUrl, "procpop", "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=yes,width=100,height=100");
}

function popTilmelding() {
	window.open("/forms/tilmelding.aspx", "procTilmeld", "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes,width=550,height=400");
}

function PostForm(buttonName) {    
	if (event.keyCode == 13) {        
		event.cancelBubble = true;
		event.returnValue = false;
		var button = document.getElementById(buttonName);
		if (button != null) {
			button.click(); 
		}
	}
} 

function DoPost(callScript) {
	var frm = document.getElementById('mainform');
	
	if(frm) {
		frm.action = "/forms/" + callScript + ".aspx";
		frm.submit();
	}
	
	return true;
}

