function fw_editthispage(id,path){
var url=path+"index.php?qur=8M3M" + id + "M2";
window.open(url,'Edit','fullscreen=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=auto,copyhistory=yes');
}
function fw_trim(str){
return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');}
function fw_connect(url,params)
{
var fw_connection; // The variable that makes Ajax possible!
try{// Opera 8.0+, Firefox, Safari
fw_connection = new XMLHttpRequest();}
catch (e){// Internet Explorer Browsers
try{
fw_connection = new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){
try{
fw_connection = new ActiveXObject("Microsoft.XMLHTTP");}
catch (e){// Something went wrong
return false;}}}
fw_connection.open("POST", url, true);
fw_connection.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
fw_connection.setRequestHeader("Content-length", params.length);
fw_connection.setRequestHeader("fw_connection", "close");
fw_connection.send(params);
return(fw_connection);
}
function fw_total_encode(str){
var s=escape(fw_trim(str));
s=s.replace(/\+/g,"%2B");
s=s.replace(/@/g,"%40");
s=s.replace(/\//g,"%2F");
s=s.replace(/\*/g,"%2A");
return(s);
}
function fw_add_comment(url,pagename){
var x=window.open(url,pagename,'width=520,height=550,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=yes');
if(!x){alert("Please allow popup to open.");}
}