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=="text" || c.type=="textarea"){
				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 openWin(mypage,myname,w,h,features) 
{
    if(screen.width){
        var winl = (screen.width-w)/2;
        var wint = (screen.height-h)/2;
    }
    else {
        winl = 0;wint =0;
    }
    if (winl < 0) winl = 0;
    if (wint < 0) wint = 0;
    var settings = 'height=' + h + ',';
    settings += 'width=' + w + ',';
    settings += 'top=' + wint + ',';
    settings += 'left=' + winl + ',';
    settings += features;
    //alert(features)
    win = window.open(mypage,myname,settings);
    win.window.focus();
}
