function inputClear(hInput,sString){

	if (hInput.value == sString) {
		hInput.value = '';
		hInput.style.color = 'black';
	} else if (hInput.value == '') {
		hInput.value = sString;
		hInput.style.color = 'gray';
	}
		
}

function popup(mylink, windowname, width, height){
	if (!window.focus) {
		return true;
	}
	var href;
	if (typeof(mylink) == 'string') {
		href = mylink;
	} else {
	   href=mylink.href;
	}
	window.open(href, windowname, 'width='+width+',height='+height+',scrollbars=yes');
	return false;
}

function setCookie(cookieName,cookieValue,nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=1;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
//		alert(cookieName);
//		alert(cookieValue);
	}
