//initialize global variable state

<!-- hide script from old browsers

var popupWin = null;



function openWin(url,state) {

	// current window's name is "body".  new window's name is "popupWin"



	// need to do the if because the state variable won't be updated in the popupWin.  so must close popupWin if it

	// exists and open a new window.

	if (popupWin != null) {

		if (!popupWin.closed)

			popupWin.close();

	}

  		

	popupWin = window.open("showrooms/" + url, "showroom", "scrollbars=no,resizable=no,width=330,height=450,left=0,top=0");



	// create a variable "statename" in the new popupWindow

	// popupWin.statename = state;



	// move the window on top

	window.popupWin.focus();

}

// end hiding -->
