// JavaScript Document
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

// Sepia Solutions  ms_SH (Show Hide Layer)
function ms_SH(theID) {
	if(!document.getElementById){return};
	var theElement = document.getElementById(theID);
	if (theElement.style.display == 'block') {
		theElement.style.display = 'none';
	} else {
		theElement.style.display = 'block';
	}
}

// Sepia Solutions  ms_SC (Swap Class)
function ms_SC(theID,cssStyle,cssStyleOther) {
	if(!document.getElementById){return};
	var theElement = document.getElementById(theID);
	if (theElement.className == cssStyle) {
		theElement.className = cssStyleOther;
	} else {
		theElement.className = cssStyle;
	}
}


function OpnWin(Pg) {window.open(Pg,'SIMS','width=600, height=400, scrollbars=yes,resizable=yes,left=200,top=200');}
function gt(a, b, c, d){document.location = '?OrdBy=' + a + '&SD=' + b + '&ShowRec=' + c + '&vMod=' + d;}
function np(a, b, c, d, e, f, g){document.location = '?vMod=' + a + '&OrdBy=' + b + '&SD=' + c + '&ShowRec=' + d + '&srch=' + e + '&FltrBy=' + f + '&pgNo=' + g;}
function npR(a,b,c,d,e,f,g,h,x,r,z,i){

if (x == 'y') {j = document.getElementById("HCVal").value;} else{j = '';};

document.location = '?vMod=' + a + '&Srch=' + b + '&sday=' + c + '&smonth=' + d + '&syear=' + e + '&eday=' + f + '&emonth=' + g + '&eyear=' + h + '&pgNo=' + i + '&HC=' + j + '&RepCode=' + r + '&Lnk=' + z;}
function sbmtFrm()
{
  document.fltr.submit();
}
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!