function decision(message, url){
if(confirm(message)) location.href = url;
}

function openWindow(url, name) {
  popupWin = window.open(url, name, 'menubar=no,status=no,toolbars=no,resizable=no,scrollbars=yes,width=600,height=750,screenX=100,left=100,screenY=0,top=0')
popupWin.focus();
 msgWindow.opener = self;
  }
function openImg(url, name) {
  popupWin = window.open(url, name, 'menubar=no,status=no,toolbars=no,resizable=no,scrollbars=yes,width=650,height=650,screenX=100,left=100,screenY=0,top=0')
popupWin.focus();
 msgWindow.opener = self;
  }

function openCompare(url, name) {
  popupWin = window.open(url, name, 'menubar=no,status=no,toolbars=no,resizable=yes,scrollbars=yes,width=568,height=300,screenX=100,left=100,screenY=0,top=0')
popupWin.focus()
}

function openApprove(url, name) {
  popupWin = window.open(url, name, 'menubar=no,status=no,toolbars=no,resizable=no,scrollbars=yes,width=568,height=400,screenX=100,left=100,screenY=0,top=0')
popupWin.focus()
}

function openPrompt(url, name) {
  popupWin = window.open(url, name, 'menubar=no,status=no,toolbars=no,resizable=no,titlebar=no,scrollbars=yes,width=250,height=150,screenX=500,left=400,screenY=500,top=400')
popupWin.focus();
 msgWindow.opener = self;
  }

//open/close items
var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
