function CallPrint(strid){
 //alert(strid);
 var prtContent = document.getElementById(strid);
 var prtDiv = document.createElement("div")
 prtDiv.appendChild(prtContent);
 var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
 //var WinPrint = window.open('','','letf=0,top=0,toolbar=1,resizable=1,width=350,height=250,scrollbars=1,status=0');
 //Add CSS to Print window
 var allsuspects=document.getElementsByTagName("link");
     for (var i=allsuspects.length; i>=0; i--){ //search backwards within nodelist for matching elements to remove
         if (allsuspects[i] && allsuspects[i].getAttribute("type")!=null && allsuspects[i].getAttribute("type")=="text/css"){
         //Add to Print window
         var newelement=createcssfile(allsuspects[i].getAttribute("href"))
         prtDiv.appendChild(newelement);
         }
     }
 WinPrint.document.write(prtDiv.innerHTML);
 WinPrint.document.close();
 WinPrint.focus();
 WinPrint.print();
 WinPrint.close();
}
function createcssfile(newhref){
  //if filename is an external CSS file
  var fileref=document.createElement("link")
  fileref.setAttribute("rel", "stylesheet")
  fileref.setAttribute("type", "text/css")
  fileref.setAttribute("href", newhref)
 return fileref
}

// JScript File
function addCommas(nStr)
{
//JavaScript:alert(addCommas("524524.54"))
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}
function EnableDisable(tag) { 
        //JavaScript:EnableDisable('ctl00_MainContent_trConfirmPassword','ctl00_MainContent_trPassword');
	        var tagtext = eval(tag);
	        //alert(tagtext.enabled);
	        if (tagtext.enabled == false)
		        {
		        tagtext.enabled = true;
		        }
	        else 
		        {
		        tagtext.enabled = false;
		        }
    }
 function shoh() { 
        //JavaScript:shoh('ctl00_MainContent_trConfirmPassword','ctl00_MainContent_trPassword');
	        var tagtext = eval(shoh.arguments.callee);
	        if (tagtext != null)
	        {
	            if (tagtext.innerText == "-")
		            {
		            tagtext.innerText = "+";
		            }
	            else if(tagtext.innerText == "+")
		            {
		            tagtext.innerText = "-";
		            }
		    }
		   a=shoh.arguments; 
		       for(i=0; i<a.length; i++)
                {
	                            if (document.getElementById) 
	                            { // DOM3 = IE5, NS6
		                            if (document.getElementById(a[i]).style.display == "none"){
			                            document.getElementById(a[i]).style.display = 'block';
		                            //	filter(("img"+id),'imgin');			
		                            } else {
		                            //	filter(("img"+id),'imgout');
			                            document.getElementById(a[i]).style.display = 'none';			
		                            }	
	                            } 
	                            else 
	                            { 
		                            if (document.layers) 
		                            {	
			                            if (document.a[i].display == "none"){
				                            document.a[i].display = 'block';
			                            //	filter(("img"+id),'imgin');
			                            } else {
			                            //	filter(("img"+id),'imgout');	
				                            document.a[i].display = 'none';
			                            }
		                            } 
		                            else 
		                            {
			                            if (document.all.a[i].style.visibility == "none"){
				                            document.all.a[i].style.display = 'block';
			                            } 
			                            else 
			                            {
			                            //	filter(("img"+id),'imgout');
				                            document.all.a[i].style.display = 'none';
			                            }
		                            }
		                      }
	            }
        }
function MM_CheckFlashVersion(reqVerStr,msg){
    var currentMsg = 'Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?';
    if(msg.length == 0) { msg = currentMsg;}
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwav? Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
        //  return flashVer;
}

// Show and Hide Div
function show() { 
        //JavaScript:show('Instructions_Content');
		   a=show.arguments; 
		       for(i=0; i<a.length; i++)
                {
	                            if (document.getElementById) 
	                            { // DOM3 = IE5, NS6
		                            if (document.getElementById(a[i]).style.display == "none"){
			                            document.getElementById(a[i]).style.display = 'block';
		                            //	filter(("img"+id),'imgin');			
		                            }	
	                            } 
	                            else 
	                            { 
		                            if (document.layers) 
		                            {	
			                            if (document.a[i].display == "none"){
				                            document.a[i].display = 'block';
			                            //	filter(("img"+id),'imgin');
			                            }
		                            } 
		                            else 
		                            {
			                            if (document.all.a[i].style.visibility == "none"){
				                            document.all.a[i].style.display = 'block';
			                            }
		                            }
		                      }
	            }
        }
function hide() { 
        //JavaScript:hide('Content','Instructions_Off');
		   a=hide.arguments; 
		       for(i=0; i<a.length; i++)
                {
	                            if (document.getElementById) 
	                            { // DOM3 = IE5, NS6
		                            if (document.getElementById(a[i]).style.display == "block"){
			                            document.getElementById(a[i]).style.display = 'none';			
		                            }	
	                            } 
	                            else 
	                            { 
		                            if (document.layers) 
		                            {	
			                            if (document.a[i].display == "block"){
				                            document.a[i].display = 'none';
			                            }
		                            } 
		                            else 
		                            {
			                            if (document.all.a[i].style.visibility == "block"){
				                            document.all.a[i].style.display = 'none';
			                            }
		                            }
		                      }
	            }
        }

	//Open browser
  function MM_openBrWindow(theURL,winName,features) 
 { //v2.0
  	window.open(theURL,winName,features);
 }

	
	function getMouseXY(e)
	{
		if (IE) { // grab the x-y pos.s if browser is IE
			tempX = event.clientX + document.body.scrollLeft
			tempY = event.clientY + document.body.scrollTop
		} else {  // grab the x-y pos.s if browser is NS
			tempX = e.pageX
			tempY = e.pageY
		}
	}
	function showpopup(elmnt,copy,x,y)
	{	
		if(x.length == 0) x = 205;
    	if(y.length == 0) y = -20;
		//document.getElementById(elmnt + "box").style.left = tempX + x;
		//document.getElementById(elmnt + "box").style.top = tempY + y;
		document.getElementById(elmnt + "box").style.left = x+"px";
		document.getElementById(elmnt + "box").style.top = y+"px";
		//document.getElementById(elmnt + "box").style.left = 600;
		//document.getElementById(elmnt + "box").style.top = 180;
		document.getElementById(elmnt + "text").innerHTML = copy;
		document.getElementById(elmnt + "box").style.visibility="visible";
		x = '';
		y = '';
	}
	function hidepopup(elmnt)
	{
		document.getElementById(elmnt + "box").style.visibility="hidden";
	}
	function showpopupbox(elmnt,x,y)
	{	
		if(x.length == 0) x = 205;
    	if(y.length == 0) y = -20;
		document.getElementById(elmnt).style.left = x+"px";
		document.getElementById(elmnt).style.top = y+"px";
		if(document.getElementById(elmnt).style.visibility=="visible")
		{
		    document.getElementById(elmnt).style.visibility="hidden";
		}
		else
		{
		    document.getElementById(elmnt).style.visibility="visible";
		}
		x = '';
		y = '';
	}
	function hidepopupbox(elmnt)
	{
		document.getElementById(elmnt).style.visibility="hidden";
	}
