function checker(){return confirm("Are you sure you want to delete?");}
function del_all_checker(){return confirm("Delete all uploads under this email address?");}
function confirm_action(text){return confirm(text);}

function textCounter(field, countfield, maxlimit){
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);}

function imageviewer(property,image){imagewin=window.open('imageviewer.php?property='+property+'&img_num='+image,'ImageViewer','width=500,height=425,top=100,left=100');
setTimeout("imagewin.focus();",10);}

function toswin(){toswindow=window.open('tos.htm','TOS','width=350,height=380,scrollbars=1');
setTimeout("imagewin.focus();",10);}

//"Accept terms" form submission- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var checkobj;

function agreesubmit(el){
	checkobj=el;
	if (document.all||document.getElementById){
	for (i=0;i<checkobj.form.length;i++){ 
		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;
	}
	}
}