function bugPrint(the_message) {
	if(DEBUG_ON == true) {
		alert(the_message)
	}
}

function cleanUpNumber(strSource)
{
	intTemp = parseInt(strSource);
	return Number(intTemp);
}

function isIE4up()
{
	if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.charAt(0) >= 4)
		return true;
	else
		return false;
}
var message="";
///////////////////////////////////
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;}
document.oncontextmenu=new Function("return false")


// no text select
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}


//PG_1064_20030527 Start:Function right added to click event.
<!-- Begin
if (navigator.appName == 'Netscape' && parseFloat(navigator.appVersion)==4.7)
{
	function right(e) 
	{
		if (e.which == 3 || e.which == 2)
		{
			return false;
		}
		return true;
	}
	
	document.oncontextmenu = function(){return false}
	if(document.layers) {window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown = function(e){if(e.target==document)return false;}}else {document.onmousedown = function(){return false}}
	
	document.onmousedown=right;
	document.onmouseup=right;
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	if (document.layers) window.captureEvents(Event.MOUSEUP);
	window.onmousedown=right;
	window.onmouseup=right;
}else
{
	document.oncontextmenu = function(){return false}
	if(document.layers) {window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown = function(e){if(e.target==document)return false;}}else {document.onmousedown = function(){return false}}
}	

//PG_1064_20030527 End:Function right added to click event.

function
ShowPic()
{
	var f = document.forms['form1'];
	f.thepic.src = document.forms['form1'].pic[document.forms['form1'].pic.selectedIndex].value;
}
// End -->