<!--

function launch_fm(item){
	self.name = "oldwindow";
	//upload = window.open('/extranet/ufile_manager/file_manager.phtml?item='+item+'&folder=','filetranfser','toolbar=no,status=yes,menubar=no,scrollbars=auto,resizable=yes,width=680,height=350,left=50,top=100');
	upload = window.open('/filemanager/filemanager.php','filetranfser','toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=680,height=350,left=50,top=100');
	upload.opener = self;
	upload.focus();
}

function launch_fd(file_id){
	self.name = "filewindow";
	upload = window.open('file_info.php?file_id='+file_id,'filedesc','toolbar=no,status=yes,menubar=no,scrollbars=auto,resizable=yes,width=250,height=390,left=50,top=100');
	upload.opener = self;
	upload.focus();
}


function launch_ez(){
	self.name = "oldwindow";
	//upload = window.open('/offlinepopup.html','eztemplates','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=770,height=450,left=15,top=15');
	upload = window.open(ez_start+'entry.asp?user_id='+ez_id+'&profile_id='+prof_id,'eztemplates','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=770,height=450,left=15,top=15');
	upload.opener = self;
	upload.focus();
}

function launch_pub(){
        self.name = "oldwindow";
        upload = window.open('http://'+pubpdf_ip+'/adlib/index.php?user_id='+ez_id+'&group_id='+group_id,'eztemplates','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=770,height=450,left=15,top=15');
        upload.opener = self;
        upload.focus();
}

function launch_ezt2() {
	self.name = "oldwindow";
	//upload = window.open('/offlinepopup.html','eztemplates2','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=770,height=450,left=15,top=15');
	upload = window.open(ez_start2+'login.php?order_user_id='+ez_id+'&profile_id='+prof_id, 'eztemplates2','toolbar=yes,staus=yes,menubar=yes,scrollbars=yes,resizable=yes,width=770,height=530,left=15,top=15');
	upload.opener = self;
	upload.focus();
}

function popUploadHelp() {
	self.name = "oldwindow";
	upload = window.open('/extranet/help/uploading.phtml','filetranfser','toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=300,height=200,left=50,top=100');
	upload.opener = self;
	upload.focus();
}

function launch_cm(){
	self.name = "oldwindow";
	upload = window.open('/a_cm/','contact_manager','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=550,height=450,left=15,top=15');
	upload.opener = self;
	upload.focus();
}

function launch_ms(item){
	self.name = "oldwindow";
	upload = window.open('/extranet/to_marketshare.php?item='+item,'marketshare','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=550,left=15,top=15');
	upload.opener = self;
	upload.focus();
}

function popCallHelp() {
	var height = 220;
	var width = 300;
	self.name = "oldwindow";
	upload = window.open('/extranet/callforhelp.php','callforhelp','toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height);
	upload.moveTo((screen.width - width) / 2, (screen.height - height) / 2); 
	upload.opener = self;
	upload.opener = self;
	upload.focus();
}

function popOrder() {
	var height = 300;
	var width = 300;
	self.name = "oldwindow";
	upload = window.open('/extranet/poporder.php','popuporder','toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height);
	upload.moveTo((screen.width - width) / 2, (screen.height - height) / 2); 
	upload.opener = self;
	upload.focus();
}

function launch_rn(item, user_id, realnet_account){
	self.name = "oldwindow";
	
	//upload = window.open('http://www.usrealnet.com/public/cgi/xrealtst.exe?CG=RE&XACTION=XDISP&ACCT_NUM=R53908335&carryvar='+user_id+'&item='+item+'&THEFILE=/public/coassets/epc01/html/home.htm','realnet','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=550,left=15,top=15');
	upload = window.open('http://www.usrealnet.com/public/cgi/xrealtst.exe?CG=RE&XACTION=XDISP&ACCT_NUM='+realnet_account+'&carryvar='+user_id+'&item='+item+'&THEFILE=/public/coassets/epc01/html/home.htm','realnet','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=550,left=15,top=15');
	upload.opener = self;
	upload.focus();
}

function launch_exp(){
	self.name = "oldwindow";
	
	upload = window.open('/extranet/experian/','experian','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=550,left=15,top=15');
	upload.opener = self;
	upload.focus();
}

function popUpWin(location, win_name, height, width) { 
	self.name = "oldwindow";
	new_win = window.open(location, win_name, 'toolbar=no,status=no, menubar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height+', top=175, left=100');
	//new_win.moveTo((screen.width - width) / 2, (screen.height - height) / 2);
	new_win.opener = self;
	new_win.focus();
}

function popLocalWin(location, win_name, height, width) { 
	// To bring up local domain windows and center them.
	self.name = "oldwindow";
	new_win = window.open(location, win_name, 'toolbar=yes,status=no, menubar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height);
	new_win.moveTo((screen.width - width) / 2, (screen.height - height) / 2);
	new_win.opener = self;
	new_win.focus();
}

function partner_help(location) { 
	// This is a quick consolidation funcution for the partner administration help. 
	var s_height = 550;
	var s_width = 700;
	
	if (location == "intro") { 
		// Bring up the introduction page. 
		
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/partner_admin_intro.html', 'admin_help', s_height, s_width);
		
	} else if (location == "add_user") { 
		// Add User Docs. 
		
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/part_admin_usermgmnt.html#usermgmnt_adduser', 'admin_help', s_height, s_width);
		
	} else if (location == "search_user") { 
		// Search User Docs.
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/part_admin_usermgmnt.html#usermgmnt_searchuser', 'admin_help', s_height, s_width);
		
	} else if (location == "code_help") { 
		// Access Code Help. 
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/part_admin_multipay.html#multipay_accessing', 'admin_help', s_height, s_width);
		
	} else if (location == "edit_user") { 
		// Edit User Docs
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/part_admin_usermgmnt.html#usermgmnt_editinfo', 'admin_help', s_height, s_width);
		
	} else if (location == "multi_admin") { 
		// Multi-Pay admin page. 
		
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/part_admin_multipay.html#multipay_admin', 'admin_help', s_height, s_width);
	
	} else if (location == "eztemplate") { 
		// EZ-Template Vars Page. 
		
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/part_admin_eztmgmnt.html', 'admin_help', s_height, s_width);
		
	} else if (location == "reports") { 
		// Reporting Docs.
		
		popLocalWin('/web_help/partner_admin/WebHelp/part_admin/part_admin_reportingservice.html', 'admin_help', s_height, s_width);
		
	}
	
	return;	
}

//-->
