
function openwindow(windowId,moduleName,widthIn,heightIn,windowType) {
/* Window - numeric */
/* windowType=X (No Resizing) or Y (possible to Resize) or other */

if (widthIn == null) {
 widthIn = "500";
}
if (heightIn == null) {
 heightIn = "500";
}

if (windowType == null) {
 windowType = "N";
}

if (!(windowType == "Y" || windowType == "N")) {
 windowType = "X";
}

	this.moduleLocation = moduleName;
	this.windowName = "sharksProduct" + windowId;
	windowRef = "newwindow" + windowId;
	i = windowId;
	windowopen[i]=true;

	if (windowType == "N" ) {
		windowParameter = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+widthIn+",height="+heightIn
	}
	else {
		if (windowType == "X" ) {
			windowParameter = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width="+widthIn+",height="+heightIn
		}
		else {
			windowParameter = "toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width="+widthIn+",height="+heightIn
		}
	}
	windowType == "";
	newwindow[i] = window.open(moduleLocation, windowName, windowParameter );
	if (window.focus) 
	{
		newwindow[i].focus()
	}
}

function openblank(windowId,moduleName,widthIn,heightIn) {
  openwindow(windowId,moduleName,widthIn,heightIn,"Y");
}

function closewindow() /* For Clothing Page */
{
	for (i=20;i<31;i++) {
		if (windowopen[i]) {
			newwindow[i].close(); 
			windowopen[i]=false;
		}
	}
}

/* 
 The following functions allow any needed changes in window dimension in this one place.
*/
function openwindowPhil() {
  openwindow(60,"ContactPhil.html",350,500);
}
function openwindowStewart() {
  openwindow(61,"ContactStewart.html",350,500);
}
function openwindowMolly() {
  openwindow(62,"ContactMolly.html",250,500);
}
function openwindowAndy() {
  openwindow(63,"ContactAJ.html",390,450);
}
function openwindowCaptains() {
  openwindow(64,"WhoCaptains.html",650,350);
}
function openwindowMCarr() {
  openwindow(64,"ContactMCarr.html",250,500);
}
