//
// common.js - common javascript functions
//

function MM_displayStatusMsg(msgStr) { //v1.0
  window.status=msgStr;
  document.MM_returnValue = true;
}

function newwindow(url,winname) {
var winname= window.open(url,"window","resizable=yes,scrollbars=yes,menubar=no,statusbar=yes,toolbar=no,locationbar=no,status=yes,location=no",300);
}
function jump (el) {
	if (el.options[el.selectedIndex].value) {
		eval("parent.location='#" + el.value + "'") }
}

function launch_win(winURL,winname,winw,winh,furn) {
	/* Parameter description :
		winURL :	Full or relative URL to launch
		winname :	Unique window name
		winw :		width in pixels
		winw :		height in pixels
		furn :		string up to 7 chars, "N" or "Y", corresponds to
					properties array below.  "N" is assumed if chars not there.
	*/
	featurestr = ''
	furnarr = new Array('status,','toolbar,','menubar,','resizable,','location,','directories,','scrollbars,')
	for (ctr=0;ctr<furn.length;ctr++) {
		if (furn.charAt(ctr) == 'Y') {
			featurestr += furnarr[ctr]
		}
	}
	featurestr += "width="+winw+",height="+winh

	this.winHandle = window.open(winURL,winname,featurestr)
	return this.winHandle
}

