/*   JavaScript routine library for d-zine.org *//* FUNCTION:	subWindow(url, x, y, ch)   EFFECT:		Spawn a sub window and load url into it    CALL SYNTAX:	A HREF="url, w, h, ch"    				onClick="subWindow1('url', w, h);return false"   PARAMETERS:	url = the URL to load into the new window   				w = width of new window in pixels   				h = height of new window in pixels   				ch =	0 -> no chrome   						1 -> toolbar   						2 -> menubar (future implementation)   						3 -> toolbar and menubar (future implementation)*/function subWindow1(url, w, h, ch){		/*initialization variables */	var	xoffset=10	var yoffset=10	var paramstring = 'scrollbars'		if (ch == 1) {		paramstring += ',toolbar'		}			else {			if (ch == 2) {				paramstring += ',menubar'				} /* if ch == 2 */			else {				if (ch == 3) {					paramstring += ',menubar,toolbar'					}/* if ch == 3 */				} /* else (ch != 2) */						}/*else (ch != 1) */							paramstring += ',width=' + w +			',height=' + h + 			',screenX=' + xoffset +			',screenY=' + yoffset	if (window.subWin1 && !window.subWin1.closed) 		{		window.subWin1.location.href=url;		window.subWin1.focus(); 		} 	else 		{		window.subWin1 = window.open(url, 'subWin1', paramstring);		window.subWin1.opener = self;		}}