function newWin(name, url, width, height, args) {

		 var newWin = new Object();

		 newWin.args = args;

		 newWin.url = url;

		 newWin.name = name;

		 newWin.width = width;

		 newWin.height = height;

		 if (document.layers) {// browser is NN

		 	 newWin.left = window.screenX + ((window.outerWidth - newWin.width) / 2);

		 	 newWin.top = window.screenY + ((window.outerHeight - newWin.height) / 2);

		 	 var attr = 'screenX=' + newWin.left + ',screenY=' + newWin.top + ',resizable=yes,width=' + newWin.width + ',height=' + newWin.height + ',' + newWin.args;

		 }

		 else {// browser is MSIE

		 	   newWin.left = (screen.width - newWin.width) / 2;

		 	   newWin.top = (screen.height - newWin.height) / 2;

		 	   var attr = 'left=' + newWin.left + ',top=' + newWin.top + ',width=' + newWin.width + ',height=' + newWin.height + ',' + newWin.args;

		 }

newWin.win=window.open(newWin.url, newWin.name, attr);

newWin.win.opener=self;

newWin.win.focus();

}

function checkRequired(requiredFields, submitButtonId)

{

	var submit = true;



	for(i = 0; i < requiredFields.length; i++) {

		if(document.getElementById(requiredFields[i].id).value != '' && document.getElementById(requiredFields[i].id).value.length>0) {

			document.getElementById('req-' + requiredFields[i].id).innerHTML = '';

		} else {

			submit = false;

			document.getElementById('req-' + requiredFields[i].id).innerHTML = '*';

		}

	}

		document.getElementById(submitButtonId).disabled = !submit;

}
