


//var url = 'http://staging.micromedic.com/carolinadining/beta/'
var url = ""
var currID = ""
var menuState = ""

////////////////////////////////////////////////
// Description: Changes image on mouseover to the imgName_on variable
///////////////////////////////////////////////
function act(imgName) {
  //if (document.images) 
    document.images[imgName].src = eval(imgName + "_on.src");

}
////////////////////////////////////////////////
// Description: Changes image on mouseover to the imgName variable
///////////////////////////////////////////////
function inact(imgName) {
  //if (document.images)
    document.images[imgName].src = eval(imgName + ".src");
}

////////////////////////////////////////////////
// Description: Renders links for our dropdown menus if user has IE 5 and up on home page
///////////////////////////////////////////////
function renderLink(href, imgName, src, width, height) {
	var menu = '<a href="' + href + '"><img name="' + imgName + '" id="' + imgName + '" onmouseover="showMenu(event)" onmouseout="hideMenu(event)" src="' + src + '" width="' + width + '" height="' + height + '" border="0" alt="" /></a>'
	var nonmenu = '<a href="' + href + '"><img src="' + src + '" width="' + width + '" height="' + height + '" border="0" alt="" /></a>'
	var flashVersion = getFlashVersion();
	if ((flashVersion >= 5) && (is_ie5up)) {
		document.write(menu);
	} else {
		document.write(nonmenu);
	}
}
////////////////////////////////////////////////
// Description: XHTML standard way of rendering links for external targets.  Use 
//	syntax - <a href="" rel="external">Link</a> and call on the onload statement
///////////////////////////////////////////////
function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
////////////////////////////////////////////////
// Description: XHTML standard way of rendering links for external targets.  Use 
//	syntax - <a href="" rel="external">Link</a> and call on the onload statement
///////////////////////////////////////////////
function WinOpeninternet(url, width, height) {

window.open(url,"","toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=no,status=no,width=" + width + ",height=" + height);

}


function doPopup(url, width, height) {

	var remote = window.open(url, "newWin", "status=no,width=" + width + ",height=" + height + ",location=no,toolbar=no,directories=no")
	if (remote.opener == null) remote.opener = self; 
	remote.opener.name = "opener";
}





function doAdminPopup(url) {

	var localUrl = url
	if (localUrl == "") { localUrl = "Maintain_Jobs.htm" }
	var myWin = window.open("admin/help/default.asp?p="+localUrl, "newWin", "status=no,width=620,height=400,location=no,toolbar=no,directories=no")
}


/* THIS CODE KEEPS ERROR MESSAGES FROM POPPING UP */
function error() {
	return true
}
//window.onerror = error

function clearForm() {
	document.forms[0].reset()
}

