﻿/*
 * 
 */
function getWinHeight() {if (window.self && self.innerHeight) {return self.innerHeight;}if (document.documentElement && document.documentElement.clientHeight) {return document.documentElement.clientHeight;}return 0;}

function getWinWidth() {if (window.self && self.innerWidth) {return self.innerWidth;}if (document.documentElement && document.documentElement.clientWidth) {return document.documentElement.clientWidth;}return 0;}

function autoFill(id, v){
    $(id).css({ color: "#999" }).attr({ value: v }).focus(function(){
	    if($(this).val()==v){
		    $(this).val("").css({ color: "#000" });
	    }
    }).blur(function(){
	    if($(this).val()==""){
		    $(this).css({ color: "#999" }).val(v);
	    }
    });
}

function clearfield() {
  var e = document.getElementById("quicksearch");
  if (e.value != "") {e.value = "";}
}
