$.superbox.settings = {
	boxId: "superbox", // Id attribute of the "superbox" element
	boxClasses: "", // Class of the "superbox" element
	overlayOpacity: .8, // Background opaqueness
	boxWidth: "600", // Default width of the box
	boxHeight: "400", // Default height of the box
	loadTxt: "Loading...", // Loading text
	closeTxt: "Close", // "Close" button text
	prevTxt: "Previous", // "Previous" button text
	nextTxt: "Next" // "Next" button text
};

$(function(){
    $.superbox();
});

function send(){
    var form = document.createElement("form"); 
    form.setAttribute("method", "post");
     
    var hiddenField = document.createElement("input");               
    hiddenField.setAttribute("name", "ssl_merchant_id"); 
    hiddenField.setAttribute("value", "544576");
    
    var hiddenField2 = document.createElement("input");               
    hiddenField2.setAttribute("name", "ssl_pin"); 
    hiddenField2.setAttribute("value", "0G3V59");
    
    var hiddenField3 = document.createElement("input");               
    hiddenField3.setAttribute("name", "ssl_amount"); 
    hiddenField3.setAttribute("value", "49.95");
    
    var hiddenField4 = document.createElement("input");               
    hiddenField4.setAttribute("name", "ssl_show_form"); 
    hiddenField4.setAttribute("value", "true");
    
    var hiddenField5 = document.createElement("input");               
    hiddenField5.setAttribute("name", "ssl_transaction_type"); 
    hiddenField5.setAttribute("value", "ccsale");
    
//    var hiddenField6 = document.createElement("input");               
//    hiddenField6.setAttribute("name", "ssl_test_mode"); 
//    hiddenField6.setAttribute("value", "true");
    
     
    form.appendChild(hiddenField);
    form.appendChild(hiddenField2); 
    form.appendChild(hiddenField3); 
    form.appendChild(hiddenField4); 
    form.appendChild(hiddenField5);
//    form.appendChild(hiddenField6); 
     
    document.body.appendChild(form); 
     
    // creating the 'formresult' window with custom features prior to submitting the form 
    //window.open('', 'formresult', 'scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,status=no'); 
     
    // setting form target to a window named 'formresult' 
    form.setAttribute("target",'formresult'); 
    form.setAttribute("action", "https://www.myvirtualmerchant.com/VirtualMerchant/process.do");  
    
    form.submit();
	document.body.removeChild(form);

};
