function Submit(){
	return true;
}

function SiteMap(page) {
	var newWindow
	var xLeft
	var yTop
	newWindow=window.open (page, '', 'resizable=1,scrollbars=1,width=450,height=450')
	xLeft=(screen.width-270)/2
	yTop=(screen.height-400-50)/2
	newWindow.moveTo(xLeft,yTop); // absolute positioning
	
	//OpenWin = window.open(page,"SiteMap","width=380,height=480,left=250,top=200,resizable=0,scrollbars=1");
	//openCentredWindow(page, 400, 370, 1, 1);
}

function Locals(url)
{
	//OpenWin = window.open(url,"LocalPresentation"," width=770,height=490,left=150,top=200,resizable=0,scrollbars=0");
	openCentredWindow(url, 487, 770, 0, 1);
}


function Order(url)
{
	//OpenWin = window.open(url,"Order"," width=300,height=300,left=150,top=200,resizable=0,scrollbars=0");
	openCentredWindow(url, 300, 300, 1, 1);
}

function OpenAffiliate(url){
	openCentredWindow4(url,'LocalPresentation',487,770,1,1);
}


function openMailWindow(strMailto) {
	openCentredWindow4('/modules/pagetemplates/sendmail.asp?mailto='+strMailto,'Email', 450, 450, 1, 1);
}

function openCentredWindow(inURL,inHeight,inWidth,inScrollbars,inResizeable) {
	var newWindow
	var xLeft
	var yTop
	newWindow=window.open (inURL, 'Foss', 'resizable='+inResizeable+',scrollbars='+inScrollbars+',width='+inWidth+',height='+inHeight)
	xLeft=(screen.width-inWidth)/2
	yTop=(screen.height-inHeight-50)/2
	newWindow.moveTo(xLeft,yTop); // absolute positioning
	newWindow.focus();
}

function openCentredWindow2(inURL,inHeight,inWidth) {
	var newWindow
	var xLeft
	var yTop
	newWindow=window.open (inURL, '', 'resizable=yes,scrollbars=no,width='+inWidth+',height='+(inHeight+60))
	xLeft=(screen.width-inWidth)/2
	yTop=(screen.height-inHeight-50)/2
	newWindow.moveTo(xLeft,yTop); // absolute positioning
}

function openCentredWindow3(inURL,Name,inHeight,inWidth, inScrollbars, inResizeable) {
	var newWindow
	var xLeft
	var yTop
	newWindow=window.open (inURL, Name, 'resizable='+inResizeable+',scrollbars='+inScrollbars+',width='+inWidth+',height='+inHeight)
	xLeft=(screen.width-inWidth)/2
	yTop=(screen.height-inHeight-50)/2
	newWindow.moveTo(xLeft,yTop); // absolute positioning
}

function openCentredWindow4(inURL,inName,inHeight,inWidth,inScrollbars,inResizeable) {
	var newWindow
	var xLeft
	var yTop
	newWindow=window.open (inURL,inName, 'resizable='+inResizeable+',scrollbars='+inScrollbars+',width='+inWidth+',height='+inHeight)
	xLeft=(screen.width-inWidth)/2
	yTop=(screen.height-inHeight-50)/2
	newWindow.moveTo(xLeft,yTop); // absolute positioning
	newWindow.focus();
}
function centerMe(url,winName,inWidth,inHeight,resizable,scrollbars){
		//var newWindow=window.open(url,winName,'height=100,width=100,toolbar=no,status=no,menubar=no,location=no,directiories=no,scrollbars=no,resizable=yes,fullscreen=no')
		var xLeft
		var yTop
		newWindow=window.open(url, winName, 'width='+inWidth+',height='+inHeight+',resizable='+resizable+',scrollbars='+scrollbars)
		xLeft=(screen.width-inWidth)/2
		yTop=(screen.height-inHeight-50)/2
		newWindow.moveTo(xLeft,yTop); // absolute positioning
		newWindow.focus();
}




