function openoffer(offertype)
{
	var left = Math.floor( screen.width / 2) - 300;
	var top = Math.floor((screen.height - 700)/2);
	openAwindow('webhostorder.aspx?type=' + offertype,'test','top=' + top + ',left=' + left + ',width=600,height=700,resizable=yes,scrollbars=yes');
}

function openAwindow(page, frm, prop)
{
//	alert(page);
//	alert(frm);
//	alert(prop);
	var win = window.open(page,frm,prop);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function openBig(page, target)
{

	var left = Math.floor( screen.width / 6);
//	alert("left:" + left);
	var height = Math.floor(screen.height - 100);
//	alert("height:" + height);
	var winParms = "top=10" + ",left=" + left + ",height=" + height + ",width=" + (left * 4)  + ",toolbar=0,resizable=1,scrollbars=1";
//    alert("winParms:" + winParms)
	openAwindow(page, target, winParms);
}

function openwindow(url)
{
	var height = 620;
	var width = 820;
	var name = "Img_Big";
	var top = (screen.availHeight-height)/2;
	var left = (screen.availWidth-width)/2;

  	var ww = window.open(url, name, "toolbar=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,personalbar=no,dependant=yes,z-lock=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
}

function changemenulevelStyle(cellObj, strCSS)
{
//	strCSS = "/webfirma/imag/addis/menu2.gif";
	//window.status= strCSS;
	//cellObj.style.backgroundImage = "url(" + strCSS + ")"; //document.styleSheets[strCSS].background-image;
}
