function openWin(doc,w,h,wname) {	var wid = 355;	var hei = 400;	var width = w;	var height = h; 	if (wname && wname != null) {		var winname = wname;	} else {		var winname = "SomeWin";	}	// If width and height were specified, use those	if ((width) && width != '' && width > 0 && (height) && height != '' && height > 0) {		wid = width;		hei = height;	}	options = "location=0,toolbar=0,menubar=0,resizable=1,scrollbars=1,width=" + wid + ",height=" + hei;	thewin = window.open(doc, winname, options);	thewin.focus();}
