
// Absolute FAQ Manager .NET
// FAQ Launcher JS 

function xlaAFMlaunch(){
	xlaAFMopenwindow('','','');
}

function xlaAFMopenwindow(faqid,topicid,question){
 	if (document.all) {
//john 		windowheight = screen.availHeight;
//john 		windowwidth=screen.availWidth;
//john 		rightwidth=300;
//john 		leftwidth=screen.availWidth-rightwidth-11;
//john 		AFMwindow=window.open('http://www.ce-it.com/absolutefm/afmmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question ,'xlaAFM','width='+rightwidth+',height='+windowheight+',screenX='+leftwidth+',screenY=0,top=0,left=' +leftwidth+',toolbar=0,location=0,status=1,menubar=0,resizable=1');
		AFMwindow=window.open('http://www.ce-it.com/absolutefm/afmmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question  ,'','toolbar=0,location=0,status=1,menubar=0,resizable=1');
//john 		AFMwindow.focus();
 		
//john 		// Resize Current Window //
//john 		top.resizeTo(leftwidth,windowheight);
//john 		top.moveTo(0,0);
//john 		top.focus();
 	} else {
		AFMwindow=window.open('http://www.ce-it.com/absolutefm/afmmain.aspx?topicid=' + topicid + '&faqid=' + faqid + '&question=' + question  ,'','width=300,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1');
 	}
}

function xlaAFMopentopic(what){
	xlaAFMopenwindow('',what,'');
}

function xlaAFMopenfaq(what){
	xlaAFMopenwindow(what,'','');
}

function xlaAFMsearch(what,topicid,selfpage){
	if (selfpage==''){
		xlaAFMopenwindow('',topicid,what);
	} else {
		self.location.href='http://www.ce-it.com/absolutefm/afmmain.aspx?topicid=' + topicid + '&question=' + what;
	}
}



