	window.attachEvent("onload",function(){
		var ss = document.getElementsByTagName("SELECT");
		for(var i=0;i<ss.length;++i){
			var o = ss[i];
			if(o.getAttribute("defaultvalue")){
				o.value = o.getAttribute("defaultvalue");
				if(o.selectedIndex<0) o.selectedIndex=0;
			}
			if(o.options.length==2){
				if( (o.options[0].value=="" || o.options[0].value=="0") && o.options[0].defaultSelected==false ){
					o.selectedIndex = 1;
					o.options.remove(0);
				}
			}
		}
		var o=document.getElementById( "Element_ForcusOnLoad" );
		if(o){ try{ o.focus();o.select(); }catch(e){} }

		var re = new RegExp("date$","i");
		var os = document.getElementsByTagName("INPUT");
		for(var i=0;i<os.length;++i){
			if(re.test(os[i].name)){
				os[i].style.cssText += ";background-position:center left; background-repeat:no-repeat;";
				os[i].onfocus = new Function("this.style.backgroundImage='';");
				os[i].onblur = new Function("if(this.value=='') this.style.backgroundImage='url(images/yyyymmdd.gif)';");
				if(os[i].value==""){
					os[i].style.backgroundImage = "url(images/yyyymmdd.gif)";
					os[i].onpropertychange = new Function("if(event.propertyName=='value' && this.value!='') this.style.backgroundImage=''; ");
				}
			}
		}
	}); 


function openWin(w,h,fileUrl) {
	var scrLeft=(screen.width-w)/2;
	var scrTop=(screen.height-h)/2;
	var param = 'top='+scrTop+',left='+scrLeft+',toolbar=0,location=0,status=0,menubar=0,resizable=1, scrollbars=0,width='+w+',height='+h+''
	window.open(fileUrl,"",param);
}