function ClearSearchInput(searchInput, strDefault) {
	if (searchInput.value == strDefault)
	 	searchInput.value = "";
}

function FillSearchInput(searchInput, strDefault) {
	if (searchInput.value == "")
		searchInput.value = strDefault;
}

function NewWindow(mypage, myname, w, h, scroll) {
        var winl = (screen.width - w) / 2;
        var wint = (screen.height - h) / 2;
        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
        if (w==0 && h==0) {
            if (parseInt(navigator.appVersion)>=4){
                target='test';
                y='toolbar=yes,location=yes,resizable=yes,status=yes,scrollbars=yes,menubar=yes,width=';
            	win=window.open(mypage,target,y+((screen.width/100)*80)+",height="+(((screen.height/100)*85)-200)+",left="+((screen.width/100)*9)+",top="+((screen.height/100)*14))}
            else {target=window.open(mypage,target,y+"600,height=280")}}
        else { win = window.open(mypage, myname, winprops)}
    	if (mypage.indexOf(document.domain) > 0 && window.focus) {win.window.focus(); }
}
