function PopHelp(help_id, w){  
  var s1 = w?"http://www.latentlight.com/help.asp?wrap=N&help_id="  + help_id:"http://www.latentlight.com/help.asp?help_id="  + help_id
  var s2= "toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=350,height=250"
  popup = window.open(s1,"help",s2)
  }
function Help(){   
  var s1 ="http://www.latentlight.com/help.asp" 
  var s2= "toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=350,height=250"
  popup = window.open(s1,"help",s2)
  }

function txtBox(obj, str, action) {
	if(action == 'on') {
		if(obj.value==str)
			obj.value = '';
	} else {
		if(obj.value=='')
			obj.value=str
	}	
}

var clickmessage="This image is copyright Latent Light.com."

function disableclick(e) {
	if (document.all) {
		if (event.button==2||event.button==3) {
			if (event.srcElement.tagName=="IMG"){
			alert(clickmessage);
			return false;
			}
		}
	} else if (document.layers) {
		if (e.which == 3) {
			alert(clickmessage);
			return false;
		}
	} else if (document.getElementById){
		if (e.which==3&&e.target.tagName=="IMG"){
			alert(clickmessage)
			return false
		}
	}
}

function associateimages(){
	for(i=0;i<document.images.length;i++)
		document.images[i].onmousedown=disableclick;
}

if (document.all)
	document.onmousedown=disableclick
else if (document.getElementById)
	document.onmouseup=disableclick
else if (document.layers)
	associateimages()
else {
    document.onmousedown=disableclick
}
