
/*
	File:		clientsides.js
	
	Author:		Rusty Swayne	(rusty@mindfly.com)
	
	Purpose:	Various client side scripts
	
	Updates:	
*/

// BEGIN WINDOW SCRIPTS
// --------------------------------------------------------------

function ShowDoc(sURL, windowName, width, height) 
// Purpose:	Launches File in new window
{
  myRemote = launch(sURL, windowName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes,width=" + width + ",height=" + height + ",left=100,top=50","parentWin");
}


function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}

function passwordComp()
{
	if(document.PassForm.password1.value != document.PassForm.password2.value)
	{
		alert("Error: Passwords do not match!")
		return false;
	}else{
		return true;
	}
}



function ActionHomeLink(item, action)
{
	switch (action) {
		case "on": 
			item.style.cursor='hand';
			item.style.background='#D3D3B6';
			break;
		default:
			item.style.cursor='default';
			item.style.background='#EEEECC';
	}
}


