function openWindow(url)
{
    window.open(url, "new", 'height=600,width=800,locationbar=no,menubar=yes,scrollbars=yes,status=yes,toolbars=no,resizable=yes',false);
}

function openNewWindow(url)
{
	url = url + "?ruid=" + new Date().getTime();
    window.open(url, "new", 'height=600,width=800,locationbar=no,menubar=no,scrollbars=yes,status=yes,toolbars=no,resizable=yes',false);
}
function newWindow(url,name)
{
    window.open(url, name, 'height=600,width=800,locationbar=no,menubar=no,scrollbars=yes,status=yes,toolbars=no,resizable=yes',false);
}

function showHideDiv(whichDiv,showhide)
{
 var divs = document.getElementsByTagName('div');
 var i;
 for (i = 0; i < divs.length; i++)
 {
 if (divs[i].id.match(whichDiv))
 {
 var style2;
 if (document.getElementById)
 { // Current browsers, i.e. IE5, NS6
 style2 = divs[i].style;
 }
 else if (document.layers)
 { // NS4
 style2 = document.layers[divs[i]].style;
 }
 else
 { // IE4
 style2 = document.all[divs[i]].style;
 }

 if (showhide == 1)
 { // show div
 style2.display = "inline";
 }
 else if (showhide == 0)
 { // hide div
 style2.display = "none";
 }
 else
 { // toggle div
 if (style2.display == "inline")
 style2.display = "none";
 else
 style2.display = "inline";
 }
 }
 }
}

function swapDiv(showDiv,hideDiv)
{
showHideDiv( hideDiv, 0 );
showHideDiv( showDiv, 1 );
}