theLANGUAGE = 'en';
// Browser check
var bw = new Object();
bw.ver = parseFloat(navigator.appVersion);
var jsMenus; var winDS = window.defaultStatus;

function openXMLWindow(whatURL, width, height) {

	// set default window size if we do not have inputs for both width and height
	if (width <= 0 || height <= 0) {
		width = 640;
		height = 480;
	}

	// open window
	features = 'status=1,toolbar=0,location=0,menubar=1,resizable=1,scrollbars=1,width=' + width + ',height=' + height;
	csXMLWindow = window.open(whatURL, 'csXMLWindow', features);

	if (!bw.ie) {
		// focus
		if (window.focus)
			csXMLWindow.focus();
	}
	else {
		// resize (neeeded in MSIE if Window was already open)
		if (window.resizeTo)
			csXMLWindow.resizeTo(width,height);
		// focus (delay needed for MSIE)
		if (window.focus)
			setTimeout('csXMLWindow.focus()',1000);
	}

}

function openWindow(whatURL, width, height) {

	// set default window size if we do not have inputs for both width and height
	if (width <= 0 || height <= 0) {
		width = 640;
		height = 480;
	}

	// open window
	features = 'status=0,toolbar=0,location=0,menubar=0,resizable=0,scrollbars=1,width=' + width + ',height=' + height;
	csWindow = window.open(whatURL, 'csWindow', features);

	if (!bw.ie) {
		// focus
		if (window.focus)
			csWindow.focus();
	}
	else {
		// resize (neeeded in MSIE if Window was already open)
		if (window.resizeTo)
			csWindow.resizeTo(width,height);
		// focus (delay needed for MSIE)
		if (window.focus)
			setTimeout('csWindow.focus()',1000);
	}

}

function openNewsWindow(popupURL, width, height, winOpener, parentURL) {

	// set default window size if we do not have inputs for both width and height
	if (width <= 0 || height <= 0) {
		width = 640;
		height = 480;
	}

	// open window
	features = 'status=0,toolbar=0,location=0,menubar=0,resizable=0,scrollbars=1,width=' + width + ',height=' + height;
	csNewsWindow = window.open(popupURL, 'csNewsWindow', features);
	
	if (winOpener > 0) {
		//csNewsWindow.opener.location = parentURL;
		this.location = parentURL;
	}
	
	if (!bw.ie) {
		// focus
		if (window.focus)
			csNewsWindow.focus();
	}
	else {
		// resize (neeeded in MSIE if Window was already open)
		if (window.resizeTo)
			csNewsWindow.resizeTo(width,height);
		// focus (delay needed for MSIE)
		if (window.focus)
			setTimeout('csNewsWindow.focus()',1000);
	}

}



