/////////////////////////////////////////////////////////////
// Misc functions
/////////////////////////////////////////////////////////////
function openCustomWindow(URLtoOpen, windowName, windowFeatures){
	var newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

//opens a popup window without any features except width and height
// based on a string which needs to be parsed :: string format = XXXxYYY:url
// uses the function OpenNewWindow() above
function openPopupWindow(paramstring){
	var width = paramstring.slice(0, paramstring.indexOf(","));
	var height = paramstring.slice(width.length+1, paramstring.indexOf(":"));
	var url = paramstring.slice(width.length + height.length + 2, paramstring.length); 
	//alert(width + "x" + height + "   " + url);
	var hWnd = OpenNewWindow(url, width, height);
	return hWnd;
}
/////////////////////////////////////////////////////////////

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//Show/Hide Function///////////////////////////////////////////////////////////

function disp_toggle(divId){
	if (document.getElementById(divId).className == "dispoff") {
		document.getElementById(divId).className = "dispon";
	}
	else {
		document.getElementById(divId).className = "dispoff";
	}
}


