function OpenWindow(URL, width, height){
	window.open (URL,"anyName","toolbar=yes,location=yes,scrollbars=yes,width=" + width + ",height=" + height + ",personalbar=yes,directories=yes,menubar=yes,titlebar=yes,resizable=yes,left="+parseInt((screen.availWidth-width)/2)+",top="+parseInt((screen.availHeight-height)/2)+"");
	return false;
}
 
function OpenWindowWithScrollbar(URL, width, height){
	window.open (URL,"anyName","toolbar=no,location=no,scrollbars=yes,width=" + width + ",height=" + height + ",personalbar=no,directories=no,menubar=no,titlebar=no,resizable=yes,left="+parseInt((screen.availWidth-width)/2)+",top="+parseInt((screen.availHeight-height)/2)+"");
	return false;
}

function OpenImageWindow(URL, width, height){
	window.open (URL,"anyName","toolbar=no,location=no,scrollbars=no,width=" + width + ",height=" + height + ",personalbar=no,directories=no,menubar=no,titlebar=no,resizable=yes,left="+parseInt((screen.availWidth-width)/2)+",top="+parseInt((screen.availHeight-height)/2)+"");
	return false;
}

function OpenWindowSelfResize(URL){
	width = 400;
	height = 400;
	window.open (URL,"anyName","toolbar=no,location=no,scrollbars=yes,width=400,height=400,personalbar=no,directories=no,menubar=no,titlebar=no,resizable=yes,left="+parseInt((screen.availWidth-width)/2)+",top="+parseInt((screen.availHeight-height)/2)+"");
	return false;
}
 
function ShowCalendar(formName, controlName) {
	window.open ("./Calendar.asp?Control=" + formName + "." + controlName,"calWin","scrollbars=no,status=no,width=220,height=155");
}

function ShowCalendarStartOn(formName, controlName, dateStart) {
	window.open ("./Calendar.asp?theDate=" + dateStart + "&Control=" + formName + "." + controlName,"calWin","scrollbars=no,status=no,width=220,height=155,resizable=yes,left="+parseInt((screen.availWidth-220)/2)+",top="+parseInt((screen.availHeight-155)/2)+"");
}

function menuMouseOver(event, menuID) {
	HM_f_PopUp('elMenu' + menuID,event);
	document.getElementById('div' + menuID).style.backgroundColor = '#13375D';
}

function menuMouseOut(event, menuID)
{
	HM_f_PopDown('elMenu' + menuID);
}

function hidingMenu(menuID)
{
	document.getElementById('div' + menuID).style.backgroundColor = '#BA4012';	
}



function viewShoppingCart() {
	var width = 670;
	var height = 400;
	windowParameters = "toolbar=no,location=no,status=yes,resizable=no,scrollbars=yes,menubar=yes,personalbar=no, width=" + width + ",height=" + height + ", left="+parseInt((screen.availWidth-width)/2)+", top="+parseInt((screen.availHeight-height)/2);
	window.open ("https://www.marks.com/b2c/ShoppingCart.do", "SecureCheckout", windowParameters);
	return false;
}

function openMapWindow(url) {
	var width = 530;
	var height = 530;
	windowParameters = "toolbar=no,location=no,status=yes,resizable=yes,scrollbars=yes,menubar=yes,personalbar=no, width=" + width + ",height=" + height + ", left="+parseInt((screen.availWidth-width)/2)+", top="+parseInt((screen.availHeight-height)/2);
	window.open (url, "MapWindow", windowParameters);
	return false;
}
