function clearDefault(el) {
  			if (el.defaultValue==el.value) el.value = ""
		}

function winpopup(url,name,height,width){ 
	var winl = (screen.width) ? (screen.width-width)/2 : 0;
	var wint = (screen.height) ? (screen.height-height)/2 : 0;
	window.open(url,name,'width='+width+',height='+height+',menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top='+wint+',left='+winl); 
}
function winpopup01(url,name,height,width){ 
	var winl = (screen.width) ? (screen.width-width)/2 : 0;
	var wint = (screen.height) ? (screen.height-height)/2 : 0;
	window.open(url,name,'width='+width+',height='+height+',menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top='+wint+',left='+winl); 
}

function setCookie(name, value) {
  var curCookie = name + "=" + escape(value) + "; expires=Wed, 07-Jun-2200 11:07:25 GMT; path=/; domain=slashphone.com";
  document.cookie = curCookie;
  window.location.href = window.location.href;
}

function setFontCookie(name, value) {
  var curCookie = name + "=" + escape(value) + "; expires=Wed, 07-Jun-2023 11:07:25 GMT; path=/; domain=slashphone.com";
  document.cookie = curCookie;
  window.location.href = window.location.href;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
	begin = dc.indexOf(prefix);
	if (begin != 0) return null;
  } else
	begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
	end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

//if (getCookie('fontsize') == null) {
//	var fontsize = 11;
//} else {
//	var fontsize = getCookie('fontsize');
//}
//function changeFontSize (fontsize) {
//	setFontCookie('fontsize',fontsize);
//}

//document.write('<style type="text/css">');
//document.write('.textcontrol {font-size:'+fontsize+'px;line-height: 150%;padding: 0px 0 30px 0px;}');
//document.write('<\/style>');
