
var isIb=true;
	function doiSubmit(){
	var str=getquerystring();
	if (str.indexOf(".") < 2 || str.indexOf("@") == -1){
		alert('Please enter a valid email address.');
	} else {

		if (getquerystring()=='word=Youremail@domain.com')
			alert('Please enter your email address.');
		else
			xmlhttpPost('/exclusive.cfm');
		}
	}


function xmlhttpPost(strURL) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
			alert('Thank you for your submission.  The exclusive coupons have been sent to your email.');
			hideIbox();
        }
    }
    self.xmlHttpReq.send(getquerystring());
}

function getquerystring() {
    var form     = document.forms['f1'];
    var word = form.word.value;
    qstr = 'word=' + escape(word);  // NOTE: no '?' before querystring
    return qstr;
}

function eclick(){
		var st = document.getElementById('wordName');
		if (st.value=='Youremail@domain.com')
			st.value='';
	}
