function MM_linkWindow(theURL) { 
  location = theURL;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showDelete($event_id) {
	if( confirm('Vil du slette denne koncert fra systemet? \nDenne handling kan ikke fortrydes.')){
		location = 'event.php?event_id='+ $event_id +'&mode=delete';
		} 
	}

function testForm() {
	if(document.getElementById('titel_da').value){
		return true;
		} else {
		/* alert('Dansk koncert titel skal udfyldes!'); */
		return false;
		}
	}

function testForm2() {
	if( confirm('Premiere dato skal udfyldes? \n-------------- \nHvis du ikke har den præcise dato så indsæt en ca. dato.  \nDu kan altid rette det senere.')){
		location = 'event.php';
		} 
	}
	
function popup($loc) {
	window.name='signout';
  newwindow=window.open($loc,"Notater",'screenX=500,screenY=100,width=500,height=420,scrollbars=yes');
}

function popup2($loc,$navn) {
window.name='signout';
 newwindow=window.open($loc,$navn,'screenX=100,screenY=100,width=800,height=500,scrollbars=yes');
}

function popup3($loc) {
	window.name='signout';
  newwindow=window.open($loc,"Notater",'screenX=500,screenY=100,width=500,height=600,scrollbars=yes');
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function til_koncert_mac(){
	window.close();
}

function til_koncert(){
	location.reload();
	 newwindow.close();
}

function submit_to_koncert(){
// 	submitForm();
	document.forms["editor"].submit();
	window.close();
	opener.til_koncert();
}

function submitDeleteVaerk(){
//	submitForm();
	document.forms["deleteVaerk"].submit();
	opener.til_koncert();
}

function til_koncert_ugem(){	
	so=window.open('','signout');
	so.location.reload();
	window.close()
}

function til_koncert_oversigt(){
	document.eventeditor.submit();
}