function clear_input(obj,type,def) {
	if (type=="onfocus") {
		if (obj.value==def) obj.value = '';
	} else {
		if (obj.value=='') obj.value = def;
	}
}

var isClicked = false
function cleartext() {
	if (!isClicked)	{
		document.forms['form'].elements['search'].value=''
		isClicked=true
	}
}

var printWindow = null;
function print()
       {
          var iWidth = 480;
          var iHeight = 640;
          var iLeft = (screen.width / 2) - (iWidth / 2);
          var iTop = (screen.height / 2) - (iHeight / 2);
          if (printWindow != null)
          {
             printWindow.close();
          }
          printWindow = window.open('smartsite.html?id=61080&amp;print=67492', 'PrintPopup', 'height='+iHeight+',width=' + iWidth + ',left=' + iLeft + ',top=' + iTop + ',scrollbars=yes,resizable=no,toolbar=no,statusbar=no');
          if (!printWindow.opener)
          {
             printWindow.opener = self;
          }
       }
