// popup function /////////////////

function openWin(name, nameWin ,h ,w) 
{
	var scw = screen.availWidth
	var sch = screen.availHeight
	aawindow = window.open(name, nameWin,"left="+((scw/2)-(w/2))+",top="+((sch/2)-(h/2))+",width="+w+",height="+h+",scrollbars=no");
}


// popup function2 /////////////////

function popup(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}

// popup function3 - Temp for papyrus /////////////////

function openNew(theURL) 
{ //v2.0
  window.open(theURL,'newwin','location=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,titlebar =yes,toolbar=yes,width=800,height=600');
}


// jumpmenu /////////////////

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// date function ////////////////

function getToday(lang)
{	
	if (lang == 'nl') 
	{
		var monthNames = new Array( "januari", "februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december" );
	
	} else if (lang == 'fr') {
	
		var monthNames = new Array( "Janvier", "f&eacute;vrier","mars","avril","mai","juin","juillet","ao&ucirc;t","septembre","octobre","novembre","d&eacute;cembre" );
	
	} else {
	
		var monthNames = new Array( "January", "February","March","April","May","June","July","August","September","October","November","December" );
	}
	
	var today = new Date();
	return today.getDate() + " "
	+ monthNames[today.getMonth()] + " "
	+ today.getFullYear();
}
		

// close window ///////////////////	
	
function closeWindow()
{
	window.close();
}

