function openBig(p_path, par_nm){
	if(!isNull(document.getElementById('big_pop')))
	     DhtmL.removePop(document.getElementById('big_pop'));
	var bg_pic=document.createElement('div');
	var head=boxHeader("One Clear Choice Doors", "DhtmL.killEl('big_pic')", ''); 
	bg_pic.id='big_pic';
	bg_pic.style.position='absolute';
	bg_pic.style.zIndex=99;
	bg_pic.style.width='400px';
	bg_pic.style.height='207px';
	bg_pic.style.backgroundColor='black';
	bg_pic.className='pic_pop';
	setInn(bg_pic, head+"<img src='"+p_path+"' width='400px' height='207px' alt='bigger picture' onclick=\"javascript:DhtmL.killEl('big_pop');\"/>");
	DhtmL.addRelPop(document.getElementById(par_nm), bg_pic);
	//DhtmL.addPop(bg_pic);
	
}

  function boxHeader(head_lbl, close_js, extra){
    var out="";
	out+="<div class='box_header' id='box_header'>"
	       +"<div class='head_lbl' style='float: left;'>"+head_lbl+"</div>";
	out+="<div class='cls_cornr' onclick=\"javascript:"+close_js+";\">"
	       +"<img src='img/close.gif' height='15px' style='float:right;margin-right:3px;cursor:pointer'/></div></div>";	
	return out;
  }

//--------------------------------------------------------------------------------------------------------------------// 
function isNull(o){
      if(typeof o=='undefined'){return true;}
      if(o==null){return true;}
      return false;
  }
/////////// --------------------------------------------------------------------------------   ///////////////////
function setInn(o,s){
	if(!isNull(o)){
	   s=isNull(s)?"":s;
	   var oo=o;
	   oo.innerHTML=s;
	   oo=null;
	}
}
