function pop(url,w,h,pop_level){
	url = escape(url)
	the_left = (total_width-w)/2;

	if(pop_level==1){ the_level = "pop_level_1"; the_top = 0; }
	if(pop_level==2){ the_level = "pop_level_2"; the_top = 10; }
			
	document.getElementById(the_level).style.width=w;
	document.getElementById(the_level).style.height=h;
	document.getElementById(the_level).style.left=the_left;
	document.getElementById(the_level).style.top=the_top;
	document.getElementById(the_level).style.zIndex=10;

	no_cache = Math.random()*1000 // have to pass this value due to IE bug

	document.getElementById(the_level+"_src").src="/common/includes/shell/shell_pop.php?no_cache="+no_cache+"&url="+url+"&w="+w+"&h="+h+"&pop_level="+pop_level;
	document.getElementById(the_level+"_src").style.width=w;
	document.getElementById(the_level+"_src").style.height=h;;	
}

function showPopup(){
	document.getElementById(the_level).style.visibility="visible";	
	popupOpen();
}

function closePop(pop_level){
	if(pop_level==1){ the_level = "pop_level_1"; }
	if(pop_level==2){ the_level = "pop_level_2"; }
	
	document.getElementById(the_level+"_src").src='/common/includes/shell/shell_blank.php';
	document.getElementById(the_level).style.visibility="hidden";
	popupClose();	
}