<!--Begin

function topWindow(page){
	popup =  window.open(page ,"","width=775,height=460,left=10,top=10,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes");
}

function setFocus() {

// function to set the cursor at the first available text/password/textarea field
// called on every page - (will on work on Internet Explorer)

	if (document.forms.length > 0 && navigator.appVersion.indexOf("IE") > 1) {
		var field = document.forms[0];
		for (i = 0; i < field.length; i++) {
			if ((field.elements[i].type == "text") || (field.elements[i].type == "password") || (field.elements[i].type == "textarea")) {
				if((field.elements[i].value == "")){
					document.forms[0].elements[i].focus();
					break;
				}	
			}
		}
	}
}

function doConfirm(message){

// function to confirm the submission of a form.
// accepts one parameter that fills the confirm message.
// must be used with a return value i.e. "return doConfirm('theMessage');"
	
	if(confirm(message)){
		document.forms[0].submit();
	}
	
	/*
	if(confirm(message)){
		return true;
	}else{
		return false;
	}*/	
}

//  End -->
