function $(e) {return document.getElementById(e);}

function fncOpenSubwindow(strMsg,strURL,intWidth,intHeight,blnResize)
{
	var rW = new RegExp('object','gi');
	var W = window.open('','winSub','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + blnResize + ',resizable=' + blnResize + ',width=' + intWidth + ',height=' + intHeight);
	if (!rW.test(String(W)))
		alert('Warning: a required window has been blocked, please disable your pop-up blocker.');
	else
	{	W.focus();
		W.resizeTo(intWidth+20,intHeight+20);
		if (strMsg != '') {
			W.document.write('<html><head><title>please wait...</title></head><body><br><center>');
			W.document.write('<table><tr><td align="center"><big><strong>please wait...<br><br>' + strMsg + ' </strong></big>');
			W.document.write('</td></tr></table></center></body></html>');
		}
		if (strURL!=''){W.location.replace(strURL);}
	}
}

function fncHoverRow(theRow, strCls, blnStatus){if(blnStatus){theRow.className=strCls+'hvr';}else{theRow.className=strCls;}}

function pad(n,l){var s=""+n;while(s.length<l){s='0'+s;}return s;}
