function openWindow(url, name)
{

var a = screen.height * 0.765;
window.open(url, name,'width=780,height=' + a + ',resizable,top=0,left=0,scrollbars,status');

}

function openCustomWindow(url, name, width, height)
{
	window.open(url, name, 'width=' + width + ',height=' + height + ',top=0,left=0');
}

function rollover(obj, imageUrl)
{
	obj.src = imageUrl;
}

function makeWindowed(p_div)
{
var is_ie6 =
   document.all && 
   (navigator.userAgent.toLowerCase().indexOf("msie 6.") != -1);
if (is_ie6)
{
   var html =
      "<iframe style=\"position: absolute; display: block; " +
      "z-index: -1; width: 100%; height: 100%; top: 0; left: 0;" +
      "filter: mask(); background-color: #ffffff; \"></iframe>";
   if (p_div) p_div.innerHTML += html;
   // force refresh of div
   var olddisplay = p_div.style.display;
   p_div.style.display = 'none';
   p_div.style.display = olddisplay;
};
}


function inmotionPopup (url)
{
	window.open(url,'','width=585,height=280,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no');
	//alert(url);
}