// **************************************************************
// JavaScript function to open a pop-up window

function OpenWithCrumbTrail( url, height, width ) {
	now = new Date();
	
    (window.open(
		url, 
		'_blank', 
		'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes')).focus();
}

function addToUrl( url, paramName, paramValue ) {
	pos = url.indexOf('?');
	if( pos >= 0 ) {
		return url + '&' + paramName + '=' + escape(paramValue); 
	} else {
		return url + '?' + paramName + '=' + escape(paramValue); 
	}
}

function OpenWindow( url, height, width ) {
    (window.open(
		url, 
		'_blank', 
		'width=' + width + ',height=' + height + ',resizable,scrollbars')).focus();
}

function setLayerClassObj(blockObj, newClass) {
	if( document.getElementById ) {
	     blockObj.className = newClass;
	}
}

function OpenWindowNoScroll(url, height, width) {
    (window.open(
		url, 
		'_blank', 
		'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no')).focus();
}

function OpenWindowToolBar(url, height, width) {
    (window.open(
		url, 
		'_blank', 
		'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,toolbar=yes,status=yes')).focus();
}

function OpenWindowStatus( url, height, width ) {
    (window.open(
		url, 
		'_blank', 
		'width=' + width + ',height=' + height + ',resizable,scrollbars,status,')).focus();
    
  }



function OpenWindowTool(url, height, width) {
    (window.open(
		url, 
		'_blank', 
		'width=' + width + ',height=' + height + ',resizable,scrollbars,toolbar')).focus();
}


function makeRemote() {
	remote = window.open(
		addToUrl(url, 'ispopup', 'true'), 
		'_blank', 
		'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
	
    if (remote.opener == null) remote.opener = window; 
	remote.opener.name = "opener";
}

function changeOpenerUrl(url) {
	window.opener.location.href=url;
	window.opener.focus();
}



 
