// JavaScript Document

// query the search string
function PageQuery(q) {
	if(q.length > 1) this.q = q.substring(1, q.length);
	else this.q = null;
	this.keyValuePairs = new Array();
	if(q) {
		for(var i=0; i < this.q.split("&").length; i++) {
			this.keyValuePairs[i] = this.q.split("&")[i];
		}
	}
	this.getKeyValuePairs = function() { return this.keyValuePairs; }
	this.getValue = function(s) {
		for(var j=0; j < this.keyValuePairs.length; j++) {
			if(this.keyValuePairs[j].split("=")[0] == s)
				return this.keyValuePairs[j].split("=")[1];
		}
		return false;
	}
	this.getParameters = function() {
		var a = new Array(this.getLength());
		for(var j=0; j < this.keyValuePairs.length; j++) {
			a[j] = this.keyValuePairs[j].split("=")[0];
		}
		return a;
	}
	this.getLength = function() { return this.keyValuePairs.length; }	
}

function queryString(key){
  var page = new PageQuery(window.location.search); 
  return unescape(page.getValue(key)); 
}

document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td><img src="/images/internalSideTab_top.gif" width="178" height="12" /></td></tr>');
document.write('<tr>');
document.write('<td class="internalSideBarItem">');
document.write('<script src="formcheck.js" language="javascript" type="text/javascript"></script>');
document.write('<form id="contestForm" name="contestForm" method="post" action="/cgi-bin/contactForm.cgi">');
document.write('<input type=hidden name="00N30000001yHqb" value="General">');
document.write('<input type=hidden name="oid" value="00D300000000IvT">');
document.write('<input type=hidden name="retURL" value="' + location.href + '?a=form' + '">');
document.write('<input type=hidden name="lead_source" value="Web Site">');

if(queryString('a')=='form') {
  document.write('<strong>Thank you for your interest.</strong> <br /><br />');
}

document.write('<strong>Request Information</strong> <br />');
document.write('<span class="sbFormInputText">First Name &nbsp;&nbsp;&nbsp;Last Name</span> <br />');
document.write('<input name="first_name" type="text" class="sbFormInputElem" id="first_name" size="7" /> ');
document.write('<input type="hidden" name="r_first_name" value="First Name is required" />');
document.write('<input name="last_name" type="text" class="sbFormInputElem" id="first_name" size="7" />');
document.write('<input type="hidden" name="r_last_name" value="Last Name is required" />');
document.write('<br />');
document.write('<span class="sbFormInputText">Phone Number </span><br />');
document.write('<input name="phone" type="text" id="phone" size="19" />');
document.write('<input type="hidden" name="r_phone" value="Phone number is required" />');
document.write('<br />');
document.write('<span class="sbFormInputText">Email Address</span> <br />');
document.write('<input name="email" type="text" id="email" size="19" />');
document.write('<input name="e_email" type="hidden" id="e_email" value="The email address format is incorrect" />');
document.write('<input name="r_email" type="hidden" id="r_email" value="Email address is required" />');
document.write('<br />');
document.write('<span class="sbFormInputText">Organization</span><br />');
document.write('<input name="company" type="text" id="company" size="19" />');
document.write('<input type="hidden" name="r_company" value="Company Name is required" />');
document.write('<br />');
document.write('<span class="sbFormInputText">Comment/Question</span> <br />');
document.write('<input name="description" type="text" id="description" value="" size="19" maxlength="255" />');
document.write('<br />');
document.write('<input name="button" type="button" class="sbFormButton" onclick="check(form,form.elements.length)" value="Submit" />');
document.write('</form>');

document.write('</td>');
document.write('</tr>');
document.write('<tr> </tr>');
document.write('<tr><td><img src="/images/internalSideTab_btm.gif" width="178" height="12" /></td></tr>');
document.write('</table>');

                