
function popitup(url)
{
    var popOK = false;

    newwindow=window.open(url,'name','resizable=yes,scrollbars=yes,height=650,width=800');
	

	
    if (window.focus) {
        newwindow.focus();
        popOK = false;
    }	else {
        popOK = true;
    }
    
    return popOK;
}

function closePopUp(){

    window.close('name');

}



function shadowbox_close(){
      parent.Shadowbox.close();
}

function shadowbox_close_and_redirect(redirect_url){

        parent.location = redirect_url;
  
        parent.Shadowbox.close();
      
}


  
function do_shadowbox(title, url, height, width){
    
      Shadowbox.init(options);
      Shadowbox.open({
        title:      title,
        player:     'iframe',
        content:    url,
        height:     height,
        width:      width
    });



}

