
function pop(url, query_string, width, iframe) {
//	$('pop-container-inner').innerHTML = 'Loadining.. need animated gif here..';
	width = (width > 0 ? width : 400);
	$('pop-container').style.width = width+'px';
    $('ol-lwd').appear({ duration: 0.3, from: 0.0, to: 0.3 });
    $('pop-band').appear({ delay:0.5, duration: 0.3, from: 0.0, to: 1.0 });
//    url = "/includes/popup-"+file+".php";
	if (!iframe) {
	    new Ajax.Request(url, {
	        method:'post',
	        parameters: query_string,
	        onSuccess: function(transport){
				$('pop-container-inner').innerHTML = transport.responseText;
	        }
	      })
	}
	else {
		$('pop-container-inner').innerHTML = " <div style = \"min-height: 350px;\"><iframe name = \"pop_frame\" frameborder='0' style = \"height: 350px; width: 100%; float: left;border: none;\" src = \""+url+"\"></iframe></div>";


	}
}

function pop_hide() {

    $('ol-lwd').fade({ duration: 0.3, from: 0.1, to: 0.0 });
    setTimeout("$('ol-lwd').setStyle({display: 'none'});", 310);

    $('pop-band').fade({ duration: 0.3, from: 1.0, to: 0.0 });
    setTimeout("$('pop-band').setStyle({display: 'none'});", 310);

}



