/* ***************** POP UP EMAGAZINE ************************* */ 
// ASK THE EXPERT WINDOW
function askTheExpert(aoid){
	if(aoid == undefined){
		aoid = "<cfoutput>#url.aoid#</cfoutput>";
	}
	var newWind=window.open('/app/article/expert.cfm?aoid='+aoid+'&refresh=true','remote','width=576,height=530 top=0 left=0');
	if (newWind.opener == null){ 
		newWind.opener = window; 
	}
}
// window open for the image gallery
function ImageGallery(link){
	var w=window.open(link,"Gallery","scrollbars=no,resizable=yes,width=670,height=480")
	w.focus();
}
// window open for Image Detail display
function ImageDetail(link){
	var w=window.open(link,"ImageDetail","scrollbars=no,resizable=yes,width=576,height=530")
	w.focus();
}
// open window for the sauber quiz    
function OpenQuiz(link){
	var w=window.open(link,"Gallery","scrollbars=no,resizable=no,width=650,height=490")
	w.focus();
}
// open window for the help 
function OpenHelp(link){
	var w=window.open(link,"helpScreen","scrollbars=yes,resizable=yes,width=550,height=500,left=100,top=100,toolbar=no,status=yes")
	w.focus();
}
// open window for communication quiz
function openCom(u){
  var newWind=window.open(u,'remote_com_quiz','resizable=yes,width=1024,height=768 top=0 left=0');
  if (newWind.opener == null){ 
			newWind.opener = window; 
		}
}
// open window for flash
function PopupFlash(link){
	var w=window.open(link,"flash","scrollbars=yes,resizable=no,width=1024,height=768")
	w.focus();
}

// CALENDER FUNCTIONS
function calendarStart(){
	var newWind=window.open('dsp_publishstart.cfm','remote','width=220,height=250 top=150 left=400');
	if (newWind.opener == null)
	{ newWind.opener = window; }
}
		
function calendarEnd(){
	var newWind=window.open('dsp_PublishEnddate.cfm','remote','width=220,height=250 top=150 left=400');
	if (newWind.opener == null)
	{ newWind.opener = window; }
}   

/* ***************** POP UP ************************* */  
var tipWin = null;
function streamWin(str){
   	window.open(str,'tipWin','width=300,height=360,resizeable=no,scrollbars=no');
}
function streamWinInd(str){
 	window.open(str,'tipWin','width=300,height=420,resizeable=no,scrollbars=no');
}
function streamWint(str){
    window.open(str,'tipWin','width=300,height=365,resizeable=no,scrollbars=no');
}
function Popup(link){
	var w=window.open(link,"galerie","scrollbars=no,resizable=yes,width=500,height=550")
	w.focus();
}
function Popup2(link){
	var w=window.open(link,"galerie","scrollbars=no,resizable=yes,width=675,height=550")
	w.focus();
}
function Popup3(link){
	var w=window.open(link,"galerie","scrollbars=no,resizable=yes,width=670,height=620")
	w.focus();
}
function pup(where){ 
   var w = window.open(where, "graphic_win", "scrollbars=1,resizable=0,width=526,height=312")
   w.focus()
}
function pup2(where){ 
   var w = window.open(where, "graphic_win", "scrollbars=0,resizable=0,width=155,height=230")
   w.focus()
}
function pup3(where){ 
   var w = window.open(where, '', "scrollbars=0,resizable=0,width=430,height=480")
   w.focus()
}
// window open for sorgenbarometer
function openSB(link){
	var w=window.open(link,"Sorgenbarometer","scrollbars=no,resizable=yes,width=800,height=600")
	w.focus();
}


