var onLoadIndicator = 0;

function bodyOnLoadFunction() {
	if (onLoadIndicator == 1)
		Go();
}

function openPopup(wURL, wName, wWidth, wHeight, wRes) {
	var winl = (screen.width-wWidth)/2-10;
	var wint = (screen.height-wHeight)/2-10;
	var params = 'top='+wint+',left='+winl+'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,';
	params += 'resizable='+wRes+',width='+wWidth+',height='+wHeight;
	var arr = window.open(wURL, wName, params);
	return arr;
}

function dictionarySearch(searchStr, languageId) {
	openPopup('../pagelibrary/dictionarypopup.jsp?search='+searchStr+'&languageId='+languageId, 'new_dict_item', 400, 300, 1);
}

function dictionarySearch2(searchStr, body, languageId) {
	openPopup('../pagelibrary/dictionarypopup.jsp?search='+searchStr+'&body='+body+'&languageId='+languageId, 'new_dict_item', 400, 300, 1);
}

function openSmallPopup(pageURL) {
	openPopup(pageURL, 'small_popup'+new Date().getTime(), 300, 200, 1);
}

function openMediumPopup(pageURL) {
	openPopup(pageURL, 'medium_popup'+new Date().getTime(), 500, 400, 1);
}

function openLargePopup(pageURL) {
	openPopup(pageURL, 'large_popup'+new Date().getTime(), 800, 600, 1);
}

var handle_PUH;-

function menuWindow(what,name,_w,_h)
{
	var w   = _w;
	var h   = _h;
	var xMax =0 ;
	var yMax = 0;
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else
	{
		if (document.layers)
		{
			xMax = window.outerWidth;
			yMax = window.outerHeight;
		}
		else
		{
			xMax = 800;
			yMax= 600;
		}
	}
	if (w>xMax) w = xMax * .9;
	if (h>yMax) h = yMax * .9;
	var l = (xMax - w)/2, t = (yMax-h)/2;
	handle_PUH = window.open(what,name,'width='+w+',height='+h+',screenX='+l+',left='+l+',screenY='+t+',top='+t+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no');
	//setTimeout( 'handle_PUH.document.title = "4expand"',100);

}
