function textfieldchange(id,defaultvalue,action){

	if(document.getElementById(id).value == defaultvalue && action == "focus"){
		document.getElementById(id).className = "active";
		document.getElementById(id).value = "";
	}
	else if(action == "blur" && document.getElementById(id).value == ""){
		document.getElementById(id).className = "inactive";
		document.getElementById(id).value = defaultvalue;
	}
	else if(action == "pageload" && document.getElementById(id).value != defaultvalue){
		document.getElementById(id).className = "active";
	}
	
}

function confirm_delete(msg, url){
	if(confirm(msg)){
		document.location = url;
	}
}

function confirmdelete(msg, url){
	if(confirm(msg)){
		document.location = url;
	}
}

function printable(url){
	window.open(url, "printable", "width=650, height=500, scrollbars=yes, resizable=yes, menubar=yes");
}

function showLogo(caller, logo) {
	if (window.location.href.contains("index.html")) caller = elm('rwLink');
	elm(logo).style.visibility = "visible";
	elm(logo).style.left = getLocation(caller, "X") + 165 + "px";
	elm(logo).style.top = getLocation(caller, "Y") + "px";
	elm(logo).style.zIndex = 1000;
}
function hideLogo(logo) {
	elm(logo).style.visibility = "hidden";
}

