
function openWindow(url)
{
	var cWindow = window.open(url,"SCI","width=640,height=360,resizable=yes,scrollbars=yes,toolbar=no,status=no,location=no,");
}


function windowOpen(url)
{
// f�r PDF-Dateien
	var cWindow = window.open(url,"SCI","width=640,height=600,resizable=yes,scrollbars=yes,toolbar=no,status=no,location=no,");
}

function popuparticle(url)
{
	var cWindow = window.open(url,"Fenster","width=240,height=120,resizable=no,scrollbars=no,toolbar=no,status=no,location=no");
}
function popuparticledetail(url)
{
	var cWindow = window.open(url,"Fenster","width=500,height=450,resizable=yes,scrollbars=yes,toolbar=no,status=no,location=no");
}



function popupstudiendetail(url)
{
	var cWindow = window.open(url,"Fenster","width=500,height=550,resizable=yes,scrollbars=yes,toolbar=no,status=no,location=no");
}



function hideDownloadform() {

//if (document.demo.elements[i].checked
//if (document.forms["downloadformular"].elements[0].checked){
if (document.forms["downloadformular"].agb.checked){

if(document.getElementById("download_form")){
	document.getElementById("download_form").style.display= 'none';
	}
if(document.getElementById("download_info")){
	document.getElementById("download_info").style.display= 'block';
	}

//document.forms["downloadformular"].submit();


} 
//else {
//alert ("Um den Download zu starten muessen Sie den Nutzungsbedingungen zustimmen.");
//}

}



function openCenterWindow(url, w, h)
{
   var padding;
   (navigator.appName == "Microsoft Internet Explorer") ? (padding = 10) : (padding = 0);

   var screenw = screen.availWidth;
   var screenh = screen.availHeight;
   var winw = (w + 15 + padding);
   var winh = (h + 15 + padding);
   var posx = (screenw / 2) - (winw / 2);
   var posy = (screenh / 2) - (winh / 2);

   var mywin = window.open(url,"my_window","top="+posy+",left="+posx+",width="+winw+",height="+winh+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");

//window.open(url,"my_window","top="+posy+",left="+posx+",width="+winw+",height="+winh+",menubar=no,locationbar=no,statusbar=no,resizable=no,toolbar=no,dependent=yes,scrollbars=no");

//,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0'


   mywin.focus();
} 

function closeclick () {
window.close();
//location='weltmarkt-bahn-2010.html';
opener.location='http://www.sci.de/produkte/weltmarkt-bahn-2010.html';
//this.close();
}


