function open_ewire_email

(email,name,subject,body,amount,buttoncurrency,allowchange,viewemail,ewireCompanyId,companyorderid,companyfeesubject,companyfeeamount,companyfeepercent

,companyfeecurrency) {
  if (buttoncurrency != "DKK")
    buttoncurrency = "DKK";
  
  intHeight = 550
  intWidth = 820
  // hvis vinduet skal centreres på siden, kan vinduets positioner bestemmes her...
  intLeft = (screen.width / 2) - (intWidth / 2)
  intTop = (screen.height / 2) - (intHeight / 2)
  // åben vindue...  
  strURL = "https://secure.ewire.dk/payment/email.asp"
  
  strURL += "?TransactionEmail_Emailaddress=" + email + "&TransactionEmail_Name=" + name + "&TransactionEmail_Subject=" + subject + 

"&TransactionEmail_Message=" + body + "&TransactionEmail_Amount=" + amount + "&TransactionEmail_Currency="+ buttoncurrency + 

"&TransactionEmail_AllowChange=" + allowchange 
  if (Number(ewireCompanyId) != NaN && Number(ewireCompanyId) > 0) {
    if (companyfeecurrency == '' || companyfeecurrency == null) 
      companyfeecurrency = 'DKK';
    strURL += "&TransactionEmail_EwireCompanyId=" + ewireCompanyId + "&TransactionEmail_CompanyOrderID=" + companyorderid + 

"&TransactionEmail_CompanyFeeSubject=" + companyfeesubject + "&TransactionEmail_CompanyFeeAmount=" + companyfeeamount + 

"&TransactionEmail_CompanyFeePercent=" + companyfeepercent + "&TransactionEmail_CompanyFeeCurrency=" + companyfeecurrency
  }
  if (viewemail != 1)
    strURL += "&action=validate"
  return window.open(strURL, "quickemail","height=" + intHeight + ",width=" + intWidth + ",left=" + intLeft + ",top=" + intTop + 

",status=1,location=0,scrollbars=1, menubar=0,toolbar=0")
}

function open_ewire_deposit(email,name,subject,body,amount,buttoncurrency,releasedate,allowchange,viewemail,EwireCompanyId,merchantorderid) {
  if (buttoncurrency != "DKK")
    buttoncurrency = "DKK";

  intHeight = 550
  intWidth = 820
  // hvis vinduet skal centreres på siden, kan vinduets positioner bestemmes her...
  intLeft = (screen.width / 2) - (intWidth / 2)
  intTop = (screen.height / 2) - (intHeight / 2)

  // åben vindue...
  strURL = "https://secure.ewire.dk/payment/deposit.asp"
    
  strURL += "?TransactionDeposit_Emailaddress=" + email + "&TransactionDeposit_Name=" + name + "&TransactionDeposit_Subject=" + subject + 

"&TransactionDeposit_Message=" + body + "&TransactionDeposit_Amount=" + amount + "&TransactionDeposit_Currency=" + buttoncurrency + 

"&TransactionDeposit_ReleaseDate=" + releasedate + "&TransactionDeposit_AllowChange=" + allowchange
  if (viewemail != 1)
    strURL += "&action=validate"
  if (Number(EwireCompanyId) != NaN && Number(EwireCompanyId) > 0)
    strURL += "&TransactionDeposit_EwireCompanyId=" + EwireCompanyId + "&TransactionDeposit_MerchantOrderId=" + merchantorderid
  
  return window.open(strURL, "quickdeposit","height=" + intHeight + ",width=" + intWidth + ",left=" + intLeft + ",top=" + intTop + 

",status=1,location=0,scrollbars=1")
}
