function popup( url, type, height, width ) {
newWin=window.open(url,'popupWindow','height=480,width=600,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes'); 
newWin.focus(); 
void(0);
}

function popupsign( url, type, height, width ) {
newWin=window.open(url,'popupWindow','height=300,width=400,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes'); 
newWin.focus(); 
void(0);
}


function popupsign2( url, type, height, width ) {
newWin=window.open(url,'popupWindow','height=640,width=490,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes'); 
newWin.focus(); 
void(0);
}

function popupsign3( url, type, height, width ) {
newWin=window.open(url,'popupWindow','height=700,width=540,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes'); 
newWin.focus(); 
void(0);
}

function popupangebote( url, type, height, width ) {
newWin=window.open(url,'popupWindow','height=620,width=660,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes'); 
newWin.focus(); 
void(0);
}

function toggle(c,r) {
	var c = document.getElementById(c);
	var r = document.getElementById(r);
	if(c.checked) {r.disabled=false;}
	else {r.checked=false;r.disabled=true;} 
}



function closeDialog(returnValue)
{
      window.returnValue = returnValue;
      window.close();
}


// printpage
function printpage() {
	if (window.print) {
		setTimeout('window.print();',200);
	}
	else if (agt.indexOf("mac") != -1) {
		alert("Press 'Cmd+p' on your keyboard to print article.");
	}
	else {
		alert("Press 'Ctrl+p' on your keyboard to print article.");
	}
}

//reloadPage

function reloadPage(){
	window.location.reload();
}
