Det virker helt fint for mig:
<script type="text/javascript">
function findBeloeb() {
return document.getElementById("beloeb").value;
}
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 = 600
// 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...
//alert(viewemail)
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
}
//strURL += "&source=http://www.eksperten.dk/spm/857716"
if (viewemail != 1)
strURL += "&action=validate"
//alert(strURL)
//alert(allowchange)
return window.open(strURL, "quickemail","height=" + intHeight + ",width=" + intWidth + ",left=" + intLeft + ",top=" + intTop + ",status=1,location=0,scrollbars=0, 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 = 600
// 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=0")
}
</script>
<a style="cursor:pointer" onclick="java script:open_ewire_email('mail@mail.dk','navn','emne','besked', findBeloeb(),'0','0');">TEST</a>
<select id="beloeb">
<option value="val_1">Emne 1</option>
<option value="val_2">Emne 2</option>
<option value="val_3">Emne 3</option>
<option value="val_4">Emne 4</option>
</select>