var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
}
}

<!--

/*
Select and Copy form element script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

//specify whether contents should be auto copied to clipboard (memory)
//Applies only to IE 4+
//0=no, 1=yes
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}
//-->


function ShowWinDailyClick(encodedUrl){
	win1 = window.open(
		encodedUrl, 
		"DclkWindow", 
		"width=380,height=380,location=no,menubar=no,toolbar=no,status=yes,resizable=no,scrollbars=no");
	return false;
}

function clkReturn(encodedUrl){
	
	if(window.name != "DclkWindow"){
		window.location.href = encodedUrl;
		return false;
	}

	if( (!window.opener || window.opener.closed )){
		window.open(
			encodedUrl, 
			"_blank", 
			"width=800,height=600,location=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes,scrollbars=yes");
	}
	
	else{
		window.opener.location.href = encodedUrl;
		window.opener.focus();
	}
	window.close();
	return false;
}