function testForFunctions(){
	// Frame breakout script moved from onLoad body handle
	if (self != top) {
		top.location = self.location;
	}
	
	// tests to see if the functions are included then runs them on body onload event.
	// tests for : initTabs() and scrolltextInit()
  doesExist = typeof(this['initTabs'])!='undefined' ? typeof(this['initTabs'])=='function' : false;
  if (doesExist) {
    initTabs();
  }
  doesExist = typeof(this['scrolltextInit'])!='undefined' ? typeof(this['scrolltextInit'])=='function' : false;
  if (doesExist) {
    scrolltextInit();
  }
  doesExist = typeof(this['initCollapse'])!='undefined' ? typeof(this['initCollapse'])=='function' : false;
  if (doesExist) {
    initCollapse();
  }
}

/* var clickmessage="This image is protected by copyright" */

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()
*/

function pviiClassNew(obj, new_style) { //v2.6 by PVII
  obj.className=new_style;
}
function passwordBlur()
{
     if(document.getElementById("passwordAsterix").value.length == 0)
     {
     document.getElementById("passwordAsterix").style.display = "none";
     document.getElementById("passwordText").style.display = "inline";
     }
}

function passwordFocus()
{
     document.getElementById("passwordAsterix").style.display = "inline";
     document.getElementById("passwordText").style.display = "none";
     document.getElementById("passwordAsterix").focus();
}

function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   {
   myfield.form.submit();
   return false;
   }
else
   return true;
}

