function sizePopUp() {
 var url = "/popups/premium_popup.htm";
 var width = 400;
 var height = 420;
 var winleft = 0;//(screen.width - width) / 2;
 var wintop = 0;//(screen.height - height) / 2;
 var winprops = 'height='+height+',width='+width+',top='+wintop+',left='+winleft+',scrollbars=no';
 var win = window.open(url, 'win', winprops);
}
function zipPopUp(use_form) {
 var url = "/zip_code_b.htm";
  if(use_form != undefined) {
   url += "?f=" + use_form;
 }
 var width = 400;
 var height = 300;
 var winleft = 0;//(screen.width - width) / 2;
 var wintop = 0;//(screen.height - height) / 2;
 var winprops = 'height='+height+',width='+width+',top='+wintop+',left='+winleft+',scrollbars=yes';
 var win = window.open(url, 'win', winprops);
}
function textCounter(field, countfield, maxlimit) {
 if(field.value.length > maxlimit) {
  field.value = field.value.substring(0, maxlimit);
 }
 else {
  countfield.value = maxlimit - field.value.length;
 }
}

