function new_window(href) {window.open(href, "_blank","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=970,height=400,top=0,left=0")}

function SetHandlers(){
	for(var i=0;i<document.forms.length;i++){ 
		f=document.forms[i];
		for(var j=0;j<f.length;j++){ 
					c=f[j];
					if(c.type=="password"){
						c.type="text";
						c.onfocus=clearDefault2; 
						c.onblur=DefaultHeslo; 
						}	
					else if(c.type=="text"){ 
						c.onfocus=clearDefault; c.onblur=restoreDefault; 
						}
					 
					}
		}
}


function restoreDefault(){ if (!this.value){ this.value=this.defaultValue; }}
function clearDefault(){ if (this.value==this.defaultValue){ this.value=""; }}
function clearDefault2(){this.type="password"; this.value=""}
function DefaultHeslo(){ if (!this.value){ this.type="text"; this.value="Heslo"; }}

 
