
	<!-- Hide from old browsers
	

    var mousex=0; 
	var mousey=0; 
	
	function Pop(theURL,winName,features) {
	window.open(theURL,winName,'menubar=yes,toolbar=no,scrollbars=yes,location=no,status=0,resizable=yes,'+features);
		}
	
	function PopAttach(theURL) {
		var x=mouseLocation.x;
		var y=mouseLocation.y-70;
		window.open(theURL,'attach','menubar=no,toolbar=no,scrollbars=no,location=no,status=yes,resizable=no,width=370,height=205,top='+y+',left='+x);
		}
	
	function _openPropReport(Id) {
	window.open('fdspropertyreport.aspx?asapid='+Id,'PropReport'+Id,'menubar=yes,toolbar=no,scrollbars=yes,location=no,status=0,resizable=no,width=700,height=900');
		}
		
		function _openNetPosting(Id) {
	window.open('netposting.aspx?asapid='+Id,'netposting'+Id,'menubar=yes,toolbar=no,scrollbars=yes,location=no,status=0,resizable=yes,width=700,height=700');
		}
	// 
	function openCalendar(formControl)
	{
	
	//document.onmousemove = moveToMouseLoc;
	//moveToMouseLoc;
	//var x=mousex+0;
	//var y=mousey-70;
	
	var x=mouseLocation.x;
	var y=mouseLocation.y-70;
	
	window.open('calendar.aspx?formname=' + formControl ,'calendar_window','menubar=no,toolbar=no,scrollbars=no,location=no,status=no,resizable=yes,width=158,height=155');
	}
	
	
	function confirm_action(URLRedirect,strMsg)
		{
		input_box=confirm("Are you sure you want to " + strMsg + " ?");
		if (input_box==true)

		{ 
		// Output when OK is clicked
		 location = URLRedirect;
		}

		else
		{
		// Output when Cancel is clicked
		}

		}
		
	function doHourglass()
		{
		document.body.style.cursor = 'wait';
		}

	function printWindow(){
	bV = parseInt(navigator.appVersion)
	if (bV >= 4) window.print()
		}
	
	
	
			if (document.images) {
			
			homeOn = new Image
			companyOn = new Image
			servicesOn = new Image
			contactOn = new Image
			
			homeOff = new Image
			companyOff = new Image
			servicesOff = new Image
			contactOff = new Image

			companyOver = new Image
			homeOver = new Image
			servicesOver = new Image
			contactOver = new Image
			
			companyOn.src = "i/btn_company_2.gif"
			homeOn.src = "i/btn_home_2.gif"
			servicesOn.src = "i/btn_services_2.gif"
			contactOn.src = "i/btn_contact_2.gif"
			
			companyOff.src = "i/btn_company.gif"
			homeOff.src = "i/btn_home.gif"
			servicesOff.src = "i/btn_services.gif"
			contactOff.src = "i/btn_contact.gif"
			
			companyOver.src = "i/btn_company_2.gif"
			homeOver.src = "i/btn_home_2.gif"
			servicesOver.src = "i/btn_services_2.gif"
			contactOver.src = "i/btn_contact_2.gif"
			
			currPage = ""
		}
		
		function resetAllOLD(onName) {
			if (document.images) {
			
				document.company.src = companyOff.src
				document.home.src = solutionsOff.src
				document.home.src = homeOff.src
				document.contact.src = contactOff.src
				
				currPage = onName
				document[onName].src = eval(onName+"On.src")
			}
		}
		
		function resetAll(onName) {
			currPage = onName
		}
		
		
		function topout(onName) {
			if (onName != currPage) {
				document.getElementById(onName).style.background='#191970';
			}
		}
		
		function topover(onName) {
			if (onName != currPage) {
				document.getElementById(onName).style.background='#989898';
			}
		}
		
		function imgOver(onName) {
			if (document.images && onName != currPage) {
				document[onName].src = eval(onName+"Over.src")
			}
		}
		
		function imgOut(onName) {
			if (document.images && onName != currPage) {
				document[onName].src = eval(onName+"Off.src")
			}
		}


		//image preload2
		var asapimages=new Array()
		function preloadimages(){
		for (i=0;i<preloadimages.arguments.length;i++){
		asapimages[i]=new Image()
		asapimages[i].src=preloadimages.arguments[i]
			}
		}



		function CheckDateField(field)
{
	var DateRE=new RegExp("^\\d{1,2}\\/\\d{1,2}\\/\\d{1,4}","i");
	var SlashRE=new RegExp("\\/");
	var tmpstr;
	var msg="Invalid date value - use MM/DD/YY";
	
	if (field.value.length != 0)
	{
		if (SlashRE.test(field.value) == false)
		{
			var dt = new Date();
			if (field.value.length <= 2)
			{
				switch(field.value)
				{
					case ".":
						field.value = (dt.getMonth() + 1) + "/" + (dt.getDate()) + "/" + dt.getFullYear();
						break;
					case "-":
						var dty = new Date();
						dty.setDate(dt.getDate()-1);
						field.value = (dty.getMonth() + 1) + "/" + dty.getDate() + "/" + dty.getFullYear();
						break;
					case "+":
						var dtt = new Date();
						dtt.setDate(dt.getDate()+1);
						field.value = (dtt.getMonth() + 1) + "/" + dtt.getDate() + "/" + dtt.getFullYear();
						break;
					default:
						field.value =  dt.getMonth() + 1 + "/" + field.value.substr(0,2) + "/" + dt.getFullYear();
				}
			}
			if (field.value.length == 4)
				field.value = field.value.substr(0,2) + "/" + field.value.substr(2,2) + "/" + dt.getFullYear();
			if (field.value.length == 6)
				field.value = field.value.substr(0,2) + "/" + field.value.substr(2,2) + "/" + field.value.substr(4,2);
		}
		
		if (DateRE.test(field.value) == false)
		{
			alert(msg);
			field.focus();
			return false;
		}
		tmpstr = field.value.split("/");
		if (tmpstr[0].substr(0,1) == "0")
			tmpstr[0] = tmpstr[0].substr(1,1);
		if (tmpstr[1].substr(0,1) == "0")
			tmpstr[1] = tmpstr[1].substr(1,1);
		if ((((parseInt(tmpstr[0]) >=1) && (parseInt(tmpstr[0]) <= 12))) 
			&& (((parseInt(tmpstr[1]) >=1) && (parseInt(tmpstr[1]) <=31)))
			&& (((parseInt(tmpstr[2]) >=00) && (parseInt(tmpstr[2]) <= 99))
			|| ((parseInt(tmpstr[2]) >=1900) && (parseInt(tmpstr[2]) <= 3999))))
			return true;
		else
		{
			alert(msg);
			field.focus();
			return false;
		}
	}
}


	//		onkeypress="listbox_onkeypress()" onblur="listbox_onblur()" ********************************

// http://msdn.microsoft.com/code/default.asp?url=/msdn-files/026/002/303/Source%20Files/listbox_htm.asp

var toFind = "";              // Variable that acts as keyboard buffer 
var timeoutID = "";           // Process id for timer (used when stopping  
                              // the timeout) 
timeoutInterval = 250;        // Milliseconds. Shorten to cause keyboard  
                              // buffer to be cleared faster 
var timeoutCtr = 0;           // Initialization of timer count down 
var timeoutCtrLimit = 3 ;     // Number of times to allow timer to count  
                              // down 
var oControl = "";            // Maintains a global reference to the  
                              // control that the user is working with. 

function listbox_onkeypress(){ 
   // This function is called when the user presses a key while focus is in  
   // the listbox. It maintains the keyboard buffer. 
   // Each time the user presses a key, the timer is restarted.  
   // First, stop the previous timer; this function will restart it. 
   window.clearInterval(timeoutID) 

   // Which control raised the event? We'll need to know which control to  
   // set the selection in. 
   oControl = window.event.srcElement; 

   var keycode = window.event.keyCode; 
   if(keycode >= 32 ){ 
       // What character did the user type? 
       var c = String.fromCharCode(keycode); 
       c = c.toUpperCase();  
       // Convert it to uppercase so that comparisons don't fail 
       toFind += c ; // Add to the keyboard buffer 
       find();    // Search the listbox 
       timeoutID = window.setInterval("idle()", timeoutInterval);   
       // Restart the timer 
    } 
} 

function listbox_onblur(){ 
   // This function is called when the user leaves the listbox. 

   window.clearInterval(timeoutID); 
   resetToFind(); 
} 

function idle(){ 
   // This function is called if the timeout expires. If this is the  
   // third (by default) time that the idle function has been called,  
   // it stops the timer and clears the keyboard buffer 

   timeoutCtr += 1 
   if(timeoutCtr > timeoutCtrLimit){ 
      resetToFind(); 
      timeoutCtr = 0; 
      window.clearInterval(timeoutID); 
   } 
} 

function resetToFind(){ 
   toFind = "" 
} 


function find(){ 
    // Walk through the select list looking for a match 

    var allOptions = document.all.item(oControl.id); 

    for (i=0; i < allOptions.length; i++){ 
       // Gets the next item from the listbox 
       nextOptionText = allOptions(i).text.toUpperCase(); 

       // By default, the values in the listbox and as entered by the   
       // user are strings. This causes a string comparison to be made,  
       // which is not correct for numbers (1 < 11 < 2). 
       // The following lines coerce numbers into an (internal) number  
       // format so that the subsequent comparison is done as a  
       // number (1 < 2 < 11). 

       if(!isNaN(nextOptionText) && !isNaN(toFind) ){ 
              nextOptionText *= 1;        // coerce into number 
              toFind *= 1; 
       } 

        // Does the next item match exactly what the user typed? 
        if(toFind == nextOptionText){ 
            // OK, we can stop at this option. Set focus here 
            oControl.selectedIndex = i; 
            window.event.returnValue = false; 
            break; 
        } 

        // If the string does not match exactly, find which two entries  
        // it should be between. 
        if(i < allOptions.length-1){ 

           // If we are not yet at the last listbox item, see if the  
           // search string comes between the current entry and the next  
           // one. If so, place the selection there. 

           lookAheadOptionText = allOptions(i+1).text.toUpperCase() ; 
           if( (toFind > nextOptionText) &&  
              (toFind < lookAheadOptionText) ){ 
              oControl.selectedIndex = i+1; 
              window.event.cancelBubble = true; 
               window.event.returnValue = false; 
              break; 
           } // if 
           } // if 

        else{ 

           // If we are at the end of the entries and the search string  
           // is still higher than the entries, select the last entry 

           if(toFind > nextOptionText){ 
               oControl.selectedIndex = allOptions.length-1 // stick it  
                                                            // at the end 
               window.event.cancelBubble = true; 
               window.event.returnValue = false; 
               break; 
           } // if 
       } // else 
    }  // for 
} // function 



function check_date(field){
var checkstr = "0123456789";
var DateField = field;
var Datevalue = "";
var OrigDatevalue;
var DateTemp = "";
var seperator = "/";
var day;
var month;
var year;
var leap = 0;
var err = 0;
var i;
   err = 0;
   DateValue = DateField.value;
   OrigDateValue = DateValue
   /* Delete all chars except 0..9 */
   for (i = 0; i < DateValue.length; i++) {
	  if (checkstr.indexOf(DateValue.substr(i,1)) >= 0) {
	     DateTemp = DateTemp + DateValue.substr(i,1);
	  }
   }
   DateValue = DateTemp;
   /* Always change date to 8 digits - string*/
   /* if year is entered as 2-digit / if < 51 assume 20xx > 50 assume 19xx */
   if (DateValue.length == 6) {
      if (DateValue.substr(4,2) < 51) {
		DateValue = DateValue.substr(0,4) + '20' + DateValue.substr(4,2);
		}
	  if (DateValue.substr(4,2) > 50) {
		DateValue = DateValue.substr(0,4) + '19' + DateValue.substr(4,2);
	  }
											}
   if (DateValue.length != 8) {
      err = 19;}
   /* year is wrong if year = 0000 */
   year = DateValue.substr(4,4);
   if (year == 0) {
      err = 20;
   }
   /* Validation of month*/
   month = DateValue.substr(0,2);
   if ((month < 1) || (month > 12)) {
      err = 21;
   }
   /* Validation of day*/
   day = DateValue.substr(2,2);
   if (day < 1) {
     err = 22;
   }
   /* Validation leap-year / february / day */
   if ((year % 4 == 0) || (year % 100 == 0) || (year % 400 == 0)) {
      leap = 1;
   }
   if ((month == 2) && (leap == 1) && (day > 29)) {
      err = 23;
   }
   if ((month == 2) && (leap != 1) && (day > 28)) {
      err = 24;
   }
   /* Validation of other months */
   if ((day > 31) && ((month == "01") || (month == "03") || (month == "05") || (month == "07") || (month == "08") || (month == "10") || (month == "12"))) {
      err = 25;
   }
   if ((day > 30) && ((month == "04") || (month == "06") || (month == "09") || (month == "11"))) {
      err = 26;
   }
   /* if 00 ist entered, no error, deleting the entry */
   if ((day == 0) && (month == 0) && (year == 00)) {
      err = 0; day = ""; month = ""; year = ""; seperator = "";
   }
   /* if no error, write the completed date to Input-Field (e.g. 13.12.2001) */
   if (err == 0) {
      DateField.value = month + seperator + day + seperator + year;
   }
   /* Error-message if err != 0 */
   else {
      alert(OrigDateValue+" is incorrect! \n Correct format is mm/dd/yyyy \n ErrNumber:"+err);
      DateField.select();
	  DateField.focus();
   }
}

// END onkeypress="listbox_onkeypress()" onblur="listbox_onblur()" ********************************

//***TOOL TIPS******************************************
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
offsetX = 0;
offsetY = -70;
var toolTipSTYLE="";

//CONSTANTS
var TSToolTipText="<b>Refers to your Reference Number.</b>";
var TSsearchToolTipText="<b>Refers to your Reference Number.</b><br>Use * as a wild card character.<br>(i.e. 01* to return all beginning with 01)";


function initToolTips()
{
  if(ns4||ns6||ie4)
  {
    if(ns4) toolTipSTYLE = document.toolTipLayer;
    else if(ns6) toolTipSTYLE = document.getElementById("toolTipLayer").style;
    else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style;
    if(ns4) document.captureEvents(Event.MOUSEMOVE);
    else
    {
      toolTipSTYLE.visibility = "visible";
      toolTipSTYLE.display = "none";
    }
    document.onmousemove = getMouseLoc;
  }
}
function toolTip(msg, fg, bg)
{
  if(toolTip.arguments.length < 1) // hide
  {
    if(ns4) toolTipSTYLE.visibility = "hidden";
    else toolTipSTYLE.display = "none";
  }
  else // show
  {
	//alert (msg);
    if(!fg) fg = "#777777";
    if(!bg) bg = "#FFFFFF";
    var content =
    '<table border="0" cellspacing="0" cellpadding="0" width="250"><td>' +
    '<table border="0" cellspacing="0" cellpadding="0" width="100%"><td align="left">' + 
    msg + '</td></table></td></table>';
    if(ns4)
    {
      toolTipSTYLE.document.write(content);
      toolTipSTYLE.document.close();
      toolTipSTYLE.visibility = "visible";
    }
    if(ns6)
    {
      document.getElementById("toolTipLayer").innerHTML = content;
      toolTipSTYLE.display='block'
    }
    if(ie4)
    {
      document.all("toolTipLayer").innerHTML=content;
      toolTipSTYLE.display='block'
    }
  }
}

 
function Point(x,y) {  this.x = x; this.y = y; } 
mouseLocation = new Point(-500,-500); 
function getMouseLoc(e) 
{ 
  if(!document.all)  //NS 
  { 
    mouseLocation.x = e.pageX; 
    mouseLocation.y = e.pageY; 
    toolTipSTYLE.left = e.pageX; 
    toolTipSTYLE.top = e.pageY; 
  } 
  else               //IE 
  { 
    mouseLocation.x = event.x + document.body.scrollLeft; 
    mouseLocation.y = event.y + document.body.scrollTop; 
    toolTipSTYLE.left = event.x + document.body.scrollLeft + offsetX; 
    toolTipSTYLE.top = event.y + document.body.scrollTop + offsetY; 
  } 
  return true; 
} 
//NS init: 
if(document.layers){ document.captureEvents(Event.MOUSEMOVE); document.onMouseMove = getMouseLoc; } 



//***END TOOL TIPS******************************************


	
	// Stop hiding from old browsers -->
