// Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start99(URL, WIDTH, HEIGHT) {
	windowprops = "left=150,top=150,width=" + WIDTH + ",height=" + HEIGHT;
	preview = window.open(URL, "preview", windowprops);
	if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup99() {
	url = "../tshirt.html";
	width = 200;  // width of window in pixels
	height = 300; // height of window in pixels
	delay = 0;    // time in seconds before popup opens
	timer = setTimeout("Start99(url, width, height)", delay*1000);
}

function DropDownMenu(entered) {
	document.forms[3].submit();
}
function DropDownMenu2(entered) {
	document.forms[3].submit();
}

function DropDownMenu3(entered) {
    
	document.browsemakemodel.submit();
}

function getCookie ()  {
	cookie = document.cookie;
	tag = "perm_cookie_id=";       // Cookie identifier
	tlen = tag.length;    // Length of cookie identifier
	index = 0;            // Begin loop at 0
	foundCookie = false;  // Processing Flag
	while (index < cookie.length)  {  // Loop through cookie to find tag
	       if (cookie.substring(index, index+tlen) == tag)  {
	              foundCookie = true;
	              index = index + tlen;
	              cookie = cookie.substring(index,cookie.length);
	              return true;
	              break;
	       }
	       index = index+1
	}
	if (foundCookie == false)  {
		return false;
	}
} // end getCookie





