function popWin(strIn, width, height) {
	if (width == void(0)) width = 520;
	else width = width+20;

	if (height == void(0)) height= 320;
	else height= height+20;

	var strArgs = 'left=50,height='+height+',width='+width+',location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes';
	var newWin = window.open('', newWin, strArgs);
	newWin.location = strIn;
	newWin.focus();
}

/* ---------------------------------------------------------------
 showImg(strSrc, strTargetId) - swaps the source of the target image with the 
 arg received.
 --------------------------------------------------------------- */
var targetImage = null;

function showImg(strSrc, strTargetId, objIn) {
	popWin(strSrc);

/*
	if (strTargetId == void(0)) strTargetId = "targetPic";
	if (targetImage == null) targetImage = findDOM(strTargetId, false); 
	targetImage.src = strSrc;
*/
}


/* ---------------------------------------------------------------
 getUrlValue - feed in the name of a request parameter, get back
 the string value of the parameter, or a blank string if not found.
 --------------------------------------------------------------- */
function getUrlValue(strNameIn) {
	var arrParms = window.location.search.split("&");
	var strReturn = "";
	for(var i=0; i<arrParms.length; i++) {
		if ( arrParms[i].indexOf(strNameIn) > -1)  {
			arrTmp = arrParms[i].split("=");
			strReturn = arrTmp[1];
			break;
		}
	}	
	return strReturn;
}

/* ---------------------------------------------------------------
 This function is the empty hook for other onload actions to be
 overridden elsewhere.
 --------------------------------------------------------------- */
function onLoadHook() {
	return;
}

/* ---------------------------------------------------------------
 This function overrides the stock function, but adds a hook for
 other onload actions.
 --------------------------------------------------------------- */

function doPageLoad(aMessage,ifConfirm,ifClose,errField){
	// hook to blank function
	onLoadHook();
    window.focus();
    if(aMessage!=null){
        if(ifConfirm){
            ifClose=confirm(aMessage);
        }else{
            doAlert(aMessage);
        }
        if(ifClose){
            window.close();
            return;
        }
    }
    submitAction=false;
    var targetField=doPageFocus(errField);
    if(targetField!=null) try {
        targetField.focus();
    }catch(ignore) {}

}

// Settings for Statcounter counter
var sc_project=3011836;
var sc_invisible=1;		// 0 - false (visible), 1 - true (invisible)
var sc_partition=32;
var sc_security="08511a4e";
//var sc_text=2;                // makes it text instead of an image

