

//HV Menu- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more
var gAutoPrint = false; // Flag for whether or not to automatically call the print function
function printSpecial(printdiv)
{
    if (document.getElementById != null)
    {
        var html = '<HTML>\n<HEAD>\n';
        //if (document.getElementsByTagName != null)
        //{
        //    var headTags = document.getElementsByTagName("head");
        //    if (headTags.length > 0)
        //        html += headTags[0].innerHTML;
        //}
        html += '\n<\/HE'+'AD>\n<BODY>\n';
        var printReadyElem = document.getElementById(printdiv);
        if (printReadyElem != null)
        {
                html += printReadyElem.innerHTML;
        }
        else
        {
            alert("Could not find the printReady section in the HTML");
            return;
        }
        html += '\n<\/BO'+'DY>\n<\/HT'+'ML>';
        var printWin = window.open("","printSpecial");
        printWin.document.open();
        printWin.document.write(html);
        printWin.document.close();
        if (gAutoPrint)
            printWin.print();
    }
    else
    {
        alert("Sorry, the print ready feature is only available in modern browsers.");
    }
}

function Go(){return}

function updated(docdate)
{
da = new Date(docdate) // Create a Date Object set to the last modifed date 
db = da.toLocaleString() // Convert to a String in "predictable formt" 
dc = db.split(" ") // Split the string on spaces 
if ( eval( dc[3] ) < 1970 ) dc[3] = eval( dc[3] ) +100 // Correct any date purporting to be before 1970 
db = dc[1] + " " + dc[2] + " " + dc[3] // Ignore day of week and combine date, month and year 
document.write ( "Last Updated " + db ) 
}
/*
function confees(form)
{

da = new Date(); // Create a Date Object (default is today) 

db = da.toLocaleString(); // Convert to a String in "predictable formt" 

dc = db.split(" "); // Split the string on spaces 

var fee_fac = 75;
var fee_stu = 25;

if (( dc[1]=="April") && ( parseInt(dc[2]) > 15 ))
{
fee_fac = 100;
fee_stu = 40; 
}


form.totconffee.value=(form.numfacconf.value * fee_fac)+(form.numstuconf.value*fee_stu);
form.totconfevnt.value=parseInt(form.totconffee.value)+parseInt(form.totevntfee.value);
}

function evefees(form){
var evefeefacrec = 25;
var evefeefacdin = 40;
var evefeesturec = 15;
var evefeestudin = 25;



form.totevntfee.value=(form.facrec.value*25)+(form.sturec.value*15)+(form.studin.value*25 )+(form.facdin.value*40);

form.totconfevnt.value=parseInt(form.totconffee.value)+parseInt(form.totevntfee.value)+parseInt(form.travelfund.value);
}
function dollars (expr) {

     expr.value = format(expr.value,2);
     // If the user enters incorrect data an alert box will 
     // be displayed. Set the cursor in the form to the 
     // field where the error occurred.
     if (! expr.value ){
          expr.focus()
          expr.select()
          return false
     }
}

function format(expr, decplaces){
     // First trim off any $ sign and leading and trailing blanks.
     expr = trim(expr)
     // Next test to see if the value is blank or 0
     if (isEmpty(expr) || expr == 0 ){
          alert("Please enter an amount")
	  return "";
     } else {
          // Test the value to see its a number. Either an 
          // integer or with one decimal point.
	  if (!isNumber(expr)){
	       alert ("Please enter a dollar amount in the amount field")
	       return "";
	  }
     }
     // Now convert the number so that it is in dollar and cents
     // format ( e.g. 0.00 )
     // This is from Danny Goodman's JavaScript Handbook
     var str = "" + Math.round (eval(expr) * Math.pow(10,decplaces))
     while (str.length <= decplaces){
          str = "0" + str
     }
     var decpoint = str.length - decplaces
     return str.substring(0,decpoint) + "." +
            str.substring(decpoint,str.length);
}

function trim(inputStr) {
     var begin = 0
     var end = inputStr.length - 1
     // Examine the front of the string.
     // Remove leading blanks or $ signs.
     for (var i = 0; i <inputStr.length; i++){
	  var oneChar = inputStr.charAt(i)
          if (oneChar == " " || oneChar == "$"){
              continue
          } else {
	      begin = i
	      break
	  } 
     }
     // Scanning from the end of the string, remove blanks
     for (var j = inputStr.length-1; j >= 0; j--){
	  var lastChar = inputStr.charAt(j)
          if (lastChar == " "){
              continue
          } else {
	      end = j 
	      break
	  } 
     }
     return inputStr.substring(begin,end+1)
}

function isEmpty(inputStr){
     // This is from Danny Goodman's JavaScript Handbook
     if (inputStr == null || inputStr == ""){
	  return true;
     }
     return false;
}

function isNumber(inputVal){
     // This is from Danny Goodman's JavaScript Handbook
     oneDecimal = false
     inputStr = "" + inputVal
     for (var i = 0; i <inputStr.length; i++){
	  var oneChar = inputStr.charAt(i)
          if (oneChar == "." && !oneDecimal){
	       oneDecimal = true
	       continue
	  }
	  if (oneChar < "0" || oneChar > "9"){
	       return false
	  }
     }
     return true
}
*/
function jemail(name,domain){

document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
document.write(name + '@' + domain  + '</a>');
}

