/*
 JavaScript file for Available Resources
 Copyright Available Resources, 2000 ALL RIGHTS RESERVED
*/

	// Quick Help Function
	function quickHelp(t,a){
		var loc = 'help.php?&act=quickhelp&helptopic=' + escape(t) + '&helpid=' + a + '#a' + a;
		var helpwin = 
	window.open(loc,'helpwin','scrollbars=yes,resizable=yes,height=300,width=250,menubar=yes');
		helpwin.focus();
	}
	
	// Display Web Page
	function showPage(userid,pageid){
		var loc = 'register_page_preview.php?&userid=' + userid + '&pageid=' + pageid;
		var webpage = 
	window.open(loc,'webpage','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,height=300,width=450');
		webpage.focus();
	}
	  
	// News popup Function
	function showArticle(homeform){
		var t = "Tips";
		var a = homeform.tip.options[homeform.tip.selectedIndex].value;
		var loc = 'index_home_news.php?&act=showtopic&topic=' + escape(t) + '&newsid=' + a + '#a' + a;
		var helpwin = 
	window.open(loc,'helpwin','scrollbars=yes,resizable=yes,height=460,width=480,menubar=yes');
		helpwin.focus();
	}
	  
	// Software Discount Pop-up
	function showDiscount(t,a){
		var loc = 'index_tools_sw_discounts.php?company=' + escape(t) + '&discountid=' + a + '#a' + a;
		var discountwin = 
	window.open(loc,'discountwin','scrollbars=yes,resizable=yes,height=300,width=250,menubar=yes');
		discountwin.focus();
	}
	
	// Display Feedback Page
	function showFeedback(){
		var loc = 'feedback.php';
		var feedbackpage = 
	window.open(loc,'feedbackpage','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,height=300,width=450');
		feedbackpage.focus();
	}
	
	// Display Refer a Friend Page
	function showRefer(userid){
		var loc = 'sendfriend3.php?&userid=' + userid;
		var referpage = 
	window.open(loc,'referpage','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,height=500,width=500');
		referpage.focus();
	}	