function popper(url,windowname,text,h,w)
{
	if ( h == '' || h == 'undefined' || isNaN(parseInt(h)) ) { h = '10'; }
	if ( w == '' || w == 'undefined' || isNaN(parseInt(w)) ) { w = '10'; }
	if ( !text ) { text = ''; }
	if ( typeof(windowname) != 'undefined' ) { windowname = 'popper'; }
	features = "height=" + h + ",width=" + w + ",scrollbars=1,resize=0,status=0,toolbar=0,menubar=0";
	url =  url + '&referrer=' + document.location.href.replace("#",'') + '&text=' + text;
	var winName = window.open(url,windowname,features);
	if ( typeof( winName ) == 'undefined' )
	{
		alert("You may have a Pop-Up Window Blocker installed that is preventing you from seeing this content. Please disable it and try again.");
	}
}


function filePicker(interface,field,defaultFolder)
{
	url = URL_ADJUSTMENT + '/_pdwms/filepicker/index.php';
	windowname = 'filepicker';
	features = "height=495,width=610,scrollbars=1,resize=0,status=0,toolbar=0,menubar=0";
	url =  url + '?field=' + field;
	url =  url + '&interface=' + interface;
	url =  url + '&tinymce=false';
	if ( defaultFolder != '' && defaultFolder != ' ' )
	{
		url =  url + '&defaultFolder=' + defaultFolder;
	}
	
	var winName = window.open(url,windowname,features);
	if ( typeof( winName ) == 'undefined' )
	{
		alert("You may have a Pop-Up Window Blocker installed that is preventing you from seeing this content. Please disable it and try again.");
	}
}