function smartRollover() {  
    if(document.getElementsByTagName) {  
        var images = document.getElementsByTagName("img");  
        for(var i=0; i < images.length; i++) {  
            if(images[i].getAttribute("src").match("off."))  
            {  
                images[i].onmouseover = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("off.", "on."));  
                }  
                images[i].onmouseout = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("on.", "off."));  
                }  
            }  
        }  
    }  
}  
if(window.addEventListener) {  
    window.addEventListener("load", smartRollover, false);  
}  
else if(window.attachEvent) {  
    window.attachEvent("onload", smartRollover);  
}



window.onload = function() {
	var obj = document.forms;
	if (!obj) return;
	for (var i = 0; i < obj.length; i++) {
		var ele = obj[i].elements;
		for (var j = 0; j < ele.length; j++) {
			if (ele[j].type != "text") continue;
			ele[j].onfocus = value_clear;
			ele[j].onblur = value_default;
		}
	}
}
function value_clear() {
	if (this.value == this.defaultValue) this.value = "";
}
function value_default() {
	if (!this.value) this.value = this.defaultValue;
}





function disp(url){

	window.open(url, "window_name", "width=800,height=780,scrollbars=yes");

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}