var browser_url;
function WinHelp(obj){
    var w,h,l,t,obj;
    url = "http://macdermott.com/winHelp.php?obj="+obj;    
    w=500;
    h=300;                              
    l = (screen.width) ? (screen.width-w)/2 : 0;
    t = (screen.height) ? (screen.height-h)/2 : 0;
    features = "left="+l+",top="+t+",width="+w+",height="+h+",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no"
    window.open(url,"WinUpload",features);
}
function WinLZ(){
    var w,h,l,t,obj;
    url = "live/chat.php";    
    w=580;
    h=580;                              
    l = (screen.width) ? (screen.width-w)/2 : 0;
    t = (screen.height) ? (screen.height-h)/2 : 0;
    features = "left="+l+",top="+t+",width="+w+",height="+h+",status=no,scrollbars=no,toolbar=no,menubar=no,location=no"
    window.open(url,"WinLZ",features);
}
function WinUpload(obj,callback){
    var w,h,l,t,callback,obj,url;
    if(!obj){obj="";}
    if(!callback){callback="";}
    url = "http://macdermott.com/winUpload.php?obj="+obj+"&callback="+callback;
    
    //if(obj){url = url+"?obj="+obj;}
    //if(obj){url = url+"?obj="+obj;}   
    w=500;
    h=300;                              
    l = (screen.width) ? (screen.width-w)/2 : 0;
    t = (screen.height) ? (screen.height-h)/2 : 0;
    features = "left="+l+",top="+t+",width="+w+",height="+h+",status=no,scrollbars=no,toolbar=no,menubar=no,location=no"
    window.open(url,"WinUpload",features);
}
function WinExtplorer(field_name, url, type, win){
    var w,h,l,t;
    url = "http://macdermott.com/explorer/index.php?fn="+field_name+"&url="+url+"&type="+type+"&win="+win.name;    
    w=800;
    h=600;                              
    l = (screen.width) ? (screen.width-w)/2 : 0;
    t = (screen.height) ? (screen.height-h)/2 : 0;
    features = "left="+l+",top="+t+",width="+w+",height="+h+",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizeable=yes"
    winExt = window.open(url,"",features);
}

