function openPopup(url, name, width, height)
{  var newwindow=window.open(url, name, 'height=' + height + ',width=' + width + ',dependent=yes,scrollbars=yes');
	 newwindow.resizeTo(width + 40, height + 40); // 40 - is the height of bottom and side bars, i assume
	 if (window.focus) {newwindow.focus();}
}

function selectOptionVert(selectObj, firstValidOption)
{	 if(selectObj.selectedIndex >= firstValidOption)
	   openPopup('./designs/' + selectObj.options[selectObj.selectedIndex].value + '/designPopup.html', 'designPopup', 690, 475);
}

function selectOptionSquare(selectObj, firstValidOption)
{	 if(selectObj.selectedIndex >= firstValidOption)
	   openPopup('./designs/' + selectObj.options[selectObj.selectedIndex].value + '/designPopup.html', 'designPopup', 994, 475);
}

function selectOptionHoriz(selectObj, firstValidOption)
{	 if(selectObj.selectedIndex >= firstValidOption)
	   openPopup('./designs/' + selectObj.options[selectObj.selectedIndex].value + '/designPopup.html', 'designPopup', 994, 425);
}