 // swingtowns.com

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em

tempobj.disabled=true
}
}
return false
}

function popwin(uri,w,h,scrolls) {

	var name = uri.replace(/\W/g, "");
	window.open(uri,name,'width='+w+', height='+h+', location=no, directories=no, menubar=no, scrollbars='+scrolls+', resizable=yes, status=no, toolbar=no');

}

var message="Right-Click Disabled...";

function clickIE(){
if (document.all){ (message);return false;}
}
 
function clickNS(e){
if (document.layers||(document.getElementById&&!document.all)){
if (e.which==2||e.which==3){(message);return false;}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}else{
document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}


