// http://willmaster.com/possibilities/archives/wmp20010130001.shtml

Width = 350;
Height = 405;

Resizable = 'no';

Scrollbars = 'no';

Script = 'http://www.burncottage.co.uk/cgi-bin/cgiemail/contactform.txt';



// STEP 5:
// Specify what happens in the main browser window right 
//    after the popup window displays. It can stay where 
//    it is, go back a certain number of pages, or go to 
//    a specific URL.
// If you want the main browser window to stay where it 
//    is, specify 0 (zero). Example:
//       MainWindow = '0';
// If you want the main browser window to go back to a 
//    previous page, specify how many pages back it should 
//    go (1 specifies the page the user was at immediately 
//    before the form page, 2 specifies the page before 
//    that, and so forth). Example:
//       MainWindow = '1';
// If you want the main browser window to go to a specific 
//    URL, specify the URL. Example:
//       MainWindow = 'http://domain.com/page.html';

MainWindow = '0';



// Leave the next three lines as is:
Swing = '?';
URL = Script;
function ConfirmationPopup() {



// STEP 6:
// Write down the name of each form element with a name="____" 
//    attribute. This would include any hidden fields, form 
//    fields that may contain user supplied information, and 
//    possibly even the tag specifying the submit button.
// For each form field name you wrote down, you will need the 
//    following JavaScript line (replace NAME with the name 
//    you wrote down):
//
//        constructURL( 'NAME', document.myform.NAME.value );
//
// When that is done, you are finished with the JavaScript code 
//    customization.

constructURL( 'success', document.contactform.success.value );
constructURL( 'failure', document.contactform.failure.value );
constructURL( 'name', document.contactform.name.value );
constructURL( 'required_email', document.contactform.required_email.value );
constructURL( 'tel', document.contactform.tel.value );
constructURL( 'message', document.contactform.message.value );


// END OF JAVASCRIPT CUSTOMIZATION.



var att = 'width=' + Width + ',height=' + Height + ',scrollbars=' + Scrollbars + ',resizable=' + Resizable;
var pu = window.open('','PU',att);
pu.location.href = URL;
Swing = '?';
URL = Script;
if((MainWindow == '0') || (MainWindow == 'o') || (MainWindow == 'O') || (MainWindow == '')) { return false; }
if(MainWindow > 0) {
	history.go(-MainWindow);
	return false;
	}
if(MainWindow < 0) {
	history.go(MainWindow);
	return false;
	}
window.location = MainWindow;
return false;
}

function constructURL(n,v) {
v = escape(v);
URL = URL + Swing + n + '=' + v;
Swing = '&';
} 