function wopen(url){
var w,h
w=screen.width/2 - 300
pr="toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=500,left=" + w +",top=0;"
win = window.open(url, "newWin",pr)
}
function winopen(surl){
var w,h
w=screen.width/2 - 200
pr="toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=450,height=220,left=" + w +",top=150;"
win = window.open(surl, "newWin",pr)
}
var DHTML = (document.getElementById || document.all || document.layers); 

function ap_getObj(name) 

{ 

if (document.getElementById) 

{ 

return document.getElementById(name).style; 

} 

else if (document.all) 

{ 

return document.all[name].style; 

} 

else if (document.layers) 

{ 

return document.layers[name]; 

} 

} 

function ap_showWaitMessage(div,flag) 

{ 

if (!DHTML) return; 

var x = ap_getObj(div); 

x.visibility = (flag) ? 'visible':'hidden' 

if(! document.getElementById) 

if(document.layers) 

x.left=280/2; 

return true; 

} 

