
//Function to activate popup.
function popup(URL, n, w, h, scrollYN, resizeYN){
window.open(URL, n,'toolbar=no,scrollbars=' + scrollYN + ',location=no,statusbar=no,menubar=no,resizable=' + resizeYN + ',width=' + w + ',height=' + h);
}

function popupnew(URL, n, w, h){
window.open(URL, n,'top=30,left=30,toolbar=yes,scrollbars=yes,location=yes,statusbar=yes,menubar=yes,resizable=yes,width=' + w + ',height=' + h);
}



function pop( name,url,width,height,params,returnVal ) {
	args="width="+width+",height="+height+","+params; 

	remote=window.open( url,name,args );

	if ( remote != null ) {
		if ( remote.opener == null )
			remote.opener = self;
	}

	remote.focus();

	if (returnVal == 1)
		return remote;
}



function poplocate( name,url,width,height,params,returnVal,left,top ) {
	args="width="+width+",height="+height+",left="+left+",top="+top+","+params; 

	remote=window.open( url,name,args );

	if ( remote != null ) {
		if ( remote.opener == null )
			remote.opener = self;
	}

	remote.focus();

	if (returnVal == 1)
		return remote;
}
