//*******************************************************************************
// open a window                                                                *
//*******************************************************************************
function PAPopenWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//*******************************************************************************
// close a window                                                               *
//*******************************************************************************
	function closeMe() {
		self.close();
	}

//*******************************************************************************
// check if numeric                                                             *
//*******************************************************************************
function isInteger(ts)
{   var i;
    for (i = 0; i < ts.length; i++)
    {   
        // Check that current character is number.
        var c = ts.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}




function MUCswapimg(ToImg, FromImg)
  {
    document.images[ToImg].src=document.images[FromImg].src
  }


<!-- Dynamic Version by: Nannette Thacker -->
<!-- http://www.shiningstar.net -->
<!-- Original by :  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->
<!-- Use one function for multiple text areas on a page -->
<!-- Limit the number of characters per textarea -->
<!-- Begin
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
//  End -->

 function DoCustomValidation()
{
  var frm = document.forms["myform"];
  if(frm.pwd1.value != frm.pwd2.value)
  {
    alert('The Password and verified password does not match!');
    return false;
  }
  else
  {
    return true;
  }
}
//*******************************************************************************
//add bookmark
//*******************************************************************************
function addBookmark(title,url) 
 {
         if(document.all)
           {
             window.external.AddFavorite(url,title);
           }
         else if (window.sidebar) 
	   { 
	     window.sidebar.addPanel(title, url,"");
	   } 
	 else if( window.opera && window.print ) 
	  { 
             return true; 
          }
 }
//*******************************************************************************
// displays a message in the status bar                                         *
//*******************************************************************************
function statusMsg(msg) 
 {
   window.status=msg;
   return true
 }
//*******************************************************************************

