<!--
var WinHold = null

function newWindow(value){
    if (WinHold && !WinHold.closed){
      window.resizeTo(600, 500);
      WinHold.location.replace(value);
    } else{
      WinHold = window.open(value, 'WinHold');
    } 
    WinHold.focus();
}

function write(){
    var sb_domain = "leatherlegends.com";
    var sb_user = "legends";
    var sb_recipient = sb_user + "@" + sb_domain;
    location.href = "mailto:" + sb_recipient;
  }

function setCookie(name, value, expire) {
  var cookieDays = 7 * 24 * 60 * 60; 
  var expDate = new Date(); 
  expDate.setTime (expDate.getTime() + cookieDays); 
  document.cookie=name+"="+escape(value)+ "; expires=" + expDate.toGMTString(); 
}

function setTempCookie(name, value, expire) {
  document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}

function getCookie(Name) {
  var search = Name + "=";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search);
    if (offset != -1) {
      offset += search.length;end = document.cookie.indexOf(";",offset);
      if (end == -1)
        end = document.cookie.length;return unescape(document.cookie.substring(offset, end))
    }
  }
}

function close(){
  if (WinHold && !WinHold.closed){
    WinHold.location.replace('thankyou.html');
  } else{
    WinHold = window.open('thankyou.html', 'WinHold', 'width=400, height=400, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
  } 
  WinHold.blur();
}

function closelink(){
  if (WinHold && !WinHold.closed){
    WinHold.location.replace('http://www.cowboy.com/index.php?refid=10846');
  } else{
    WinHold = window.open('http://www.cowboy.com/index.php?refid=10846', 'WinHold', 'width=400, height=400, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
  } 
  WinHold.blur();
}

//-->
