// JScript File
//<!--
function alert() {
    
} 

function clearText(obj)
{ 
    obj.value = "";
    obj.style.color = "#000";
}
 
//this function is called when date is selected in calendar
var preSelectedDate;

function UpdateTaskListPanel() {
	grid1.refresh();
	//alert('refresh');
}
function movr(obj)
{      
    obj.style.backgroundColor ="#E0E0E0";
}
function mout(obj)
{
    obj.style.backgroundColor ="#FFF";
}
function mclk(i, loc) {
 
  var pos = loc.pathname.indexOf("/",1);
  
  var strAppName = loc.pathname.substring(0,pos);
  
  var url = strAppName + i;
     
  window.location.href=url
}

function mclknew(i, loc) {
 
  var pos = loc.pathname.indexOf("/",1);
  
  var strAppName = loc.pathname.substring(0,pos);
  
  var url = strAppName + i;
       
  window.open(url);
}

function mclknewpage(i, loc) {
        
  window.open(i);
}

function mclkexternal(i, loc) {

    window.location.href = i
}

function showdiv(i) {
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(i).style.visibility = 'visible';
        document.getElementById(i).style.display = 'inline';
    }
    else {
        if (document.layers) { // Netscape 4
            document.i.visibility = 'visible';
            document.i.display = 'inline';
        }
        else { // IE 4
            document.all.i.style.visibility = 'visible';
            document.all.i.style.display = 'inline';
        }
    }
} 

function printablePop(moduleID){
	theURL="http://www.depcollc.com/products/modules/printable.aspx?mid=" + moduleID;
	wname = "_blank"
	window.open(theURL, wname, 'height=545,width=675,scrollbars=yes,resizable=no,toolbar=no');
	
}

function ClassPlusPop(){
			theURL="classpluspopup.aspx";
			wname ="popup"
			window.open(theURL, wname, 'height=545,width=675,scrollbars=yes,resizable=no,toolbar=no');
}

function RunMap()
{     
    document.write('<object height="400" width="420" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" name="flashmap">\n');
    document.write('<PARAM NAME="_cx" VALUE="11113">\n');
    document.write('<PARAM NAME="_cy" VALUE="10583">\n');
    document.write('<PARAM NAME="FlashVars" VALUE="">\n');
    document.write('<PARAM NAME="Movie" VALUE="multimedia/map.swf">\n');
    document.write('<PARAM NAME="Src" VALUE="multimedia/map.swf">\n');
    document.write('<PARAM NAME="WMode" VALUE="Window">\n');
    document.write('<PARAM NAME="Play" VALUE="-1">\n');
    document.write('<PARAM NAME="Loop" VALUE="-1">\n');
    document.write('<PARAM NAME="Quality" VALUE="High">\n');
    document.write('<PARAM NAME="SAlign" VALUE="">\n');
    document.write('<PARAM NAME="Menu" VALUE="-1">\n');
    document.write('<PARAM NAME="Base" VALUE="">\n');
    document.write('<PARAM NAME="AllowScriptAccess" VALUE="always">\n');
    document.write('<PARAM NAME="Scale" VALUE="ShowAll">\n');
    document.write('<PARAM NAME="DeviceFont" VALUE="0">\n');
    document.write('<PARAM NAME="EmbedMovie" VALUE="0">\n');
    document.write('<PARAM NAME="BGColor" VALUE="">\n');
    document.write('<PARAM NAME="SWRemote" VALUE="">\n');
    document.write('<PARAM NAME="MovieData" VALUE="">\n');
    document.write('<PARAM NAME="SeamlessTabbing" VALUE="1">\n');
    document.write('<EMBED src="multimedia/map.swf" quality="high" scale="exactfit" wmode="transparent" bgcolor="#FFFFFF" WIDTH="420"   HEIGHT="400" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">  </EMBED>\n');
    document.write('</object>\n');
}

function closeMe() {
    window.close();
}

function resize() {

    var frame = document.getElementById("container");

    frame.style.width = "675px";
}

function fnTrapKD(btn, event) {
       if (document.all) {
            if (event.keyCode == 13) {
                event.returnValue = false;
                event.cancel = true;
                btn.click();
            }
        }
        else if (document.getElementById) {
            if (event.which == 13) {
                event.returnValue = false;
                event.cancel = true;
                btn.click();
            }
        }
        else if (document.layers) {
            if (event.which == 13) {
                event.returnValue = false;
                event.cancel = true;
                btn.click();
            }
        }
    }

    function setFocus(control, event) {
        if (document.all) {
            if (event.keyCode == 13) {
                event.returnValue = false;
                event.cancel = true;
                control.focus();
            }
        }
        else if (document.getElementById) {
            if (event.which == 13) {
                event.returnValue = false;
                event.cancel = true;
                control.focus();
            }
        }
        else if (document.layers) {
            if (event.which == 13) {
                event.returnValue = false;
                event.cancel = true;
                control.focus();
            }
        }
    }
    
    function WebForm_FireDefaultButton(event, target) {

        if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {

            var defaultButton;

            if (__nonMSDOMBrowser) {

                defaultButton = document.getElementById(target);

            } else {

                defaultButton = document.all[target];
            }

            /* This is the only addition to this method, the rest is identical to MS version.*/

            if (defaultButton && typeof (defaultButton.click) == "undefined") {

                defaultButton.click = function() {

                    var result = true;

                    if (defaultButton.onclick)

                        result = b.onclick();

                    if (typeof (result) == "undefined" || result)

                        eval(defaultButton.href);
                }
            }

            if (defaultButton && typeof (defaultButton.click) != "undefined") {

                defaultButton.click();

                event.cancelBubble = true;

                if (event.stopPropagation) event.stopPropagation();

                return false;
            }
        }
        return true;
    }


  
   

// -->