function MM_jumpMenu(targ,selObj,restore){ 
//v3.0
//if (selObj.options[selObj.selectedIndex].value=="/prosecutor/")
//     window.open("http://www.waynecounty.com" + selObj.options[selObj.selectedIndex].value);
//else
//  {
     eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
     if (restore) selObj.selectedIndex=0;
//  }
}

function drawAlert () {
alert ("You are leaving the Wayne County Website. This link opens in a new window. Wayne County does not endorse the content, products, services, or viewpoints expressed by these external sites. Please see disclaimer for details.");
}

function drawAlertHC () {
alert ("The Wayne County website is provided as a service to the public. Links to and/or inclusion or identification of health care programs, health care options, other governmental units, private for profit or non-profit companies offering health care services are provided as part of Wayne County’s effort to educate the public, promote overall health care coverage and improve the health of Wayne County residents.\n\nAmong the entities identified on the Wayne County website is HealthChoice of Michigan which is a Municipal Health Facilities Corporation and legally separate and distinct from Wayne County. Information regarding HealthChoice of Michigan (also know as Wayne County’s HealthChoice) is provided on this website as a service to the public and not as a solicitation or endorsement.\n\nInquiries or concerns regarding HealthChoice of Michigan and its programs should be directed to the HealthChoice of Michigan Executive Director or its Board of Trustees in their official capacity.");
}

// May 20 ,2008
// Function Trim() : Get rid of blank space witin email address
// Function wcEmailAddress() : Compose a wayne County email address 
// Function wcEmailAsIcon() : Compose a wayne County email address and show it as an Icon (imgs/emailLink.gif)

function wcEmail(Recpt){
    site = "co.wayne.mi.us";
    return Recpt +'@' + site ;
}

function wcEmailAsIcon(Recpt){
    site = "co.wayne.mi.us";
    return '<a href="mailto:' + Recpt +'@' + site + '"> <img src="http://www.waynecounty.com/imgs/emailLink.gif" width="16" height="12" border="0" align="absmiddle"></a>';
}

function wcEmailAsIconAdvanced(Dept, Recpt, Site, Subject, Contents){

    //    var daReferrer = document.referrer; 
    var email =  Recpt +'@' + Site ; 
    var subject = "Wayne County - " + Dept;     
    var mailto_link = 'mailto:' + email + '?subject=' + Subject + '&body=' + Contents; 
    return '<a href="' + mailto_link + '"> <img src="http://www.waynecounty.com/imgs/emailLink.gif" width="16" height="12" border="0" align="absmiddle"></a>';
    //    win = window.open(mailto_link,'emailWindow'); 
    //    if (win && win.open &&!win.closed) win.close(); 
} 


// JavaScript Document
