function DisplayMailForm(menu){

var pos=findPos(document.getElementById('mail'+menu));
document.getElementById('contactmenu'+menu).style.left=pos[0]+'px';
document.getElementById('contactmenu'+menu).style.top =pos[1]+'px';
document.getElementById('contactmenu'+menu).style.display='block';
}

function HideMenu(){

if(document.getElementById('contactmenu1'))
	document.getElementById('contactmenu1').style.display='none';
if(document.getElementById('contactmenu2'))
	document.getElementById('contactmenu2').style.display='none';

}

function Contact(e){

if (!e) var e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();

if(document.getElementById('subject').value!=''){
	document.contactform.submit();
	}
}

function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft
curtop=obj.offsetTop
while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}}
return[curleft,curtop];}

function bookmark(){
bookmarkurl="http://www.payrollbureau.nl";
bookmarktitle="P-services: payrolling";
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);
else if (window.sidebar)
window.sidebar.addPanel(bookmarktitle, bookmarkurl, "");
}

function SelectOptionInList(obj,dir){

var intIndex=0;
if(document.getElementById(obj))
	for(intIndex=0;intIndex<document.getElementById(obj).options.length;intIndex++){
		if(document.getElementById(obj).options[intIndex].value==dir){
			document.getElementById(obj).selectedIndex=intIndex;
			break;
			}
		}
	}

