/*
*  Variable to define parent(top) document object
*/
var _top = top.document;

/*
*  Variable to define popup window's document object
*/

var _doc = this.document;

/*
*  passValue will copy a value from the popup window to the main page (example im.jsp)
*/
function passValue(_name,val) {
	top.setValue(_name,val);
}

function launchPage(_action) {
	top.focus();
	if(_action) {
		eval(_action);
	} else {
		top._submit();
	}
	top.closeFrame();
	try{top.alertUserWait()}catch(e){};
}
/*
 * These functions can hide/show an number of objects with a valid id
 */
function hideObjects() {
	var args = hideObjects.arguments;
	for (i = 0;i < args.length;i++) {
		if(document.getElementById(args[i]))
			document.getElementById(args[i]).style.display = "none";
	}
}

function showObjects() {
	var args = showObjects.arguments;
	for (i = 0;i < args.length;i++) {
		if(document.getElementById(args[i]))
			document.getElementById(args[i]).style.display = "block";
	}
}
