function openBrWindow(theURL,nm,w,h) { //v2.0 info@onprod.co.uk
var ct = ((screen.height/2)-(h/2))
var cl = ((screen.width/2)-(w/2))
window.open(theURL,nm,"width="+w+",height="+h+",top="+ct+",left="+cl+", scrollbars=yes, resizable=yes,status=yes");
nm.focus;
}

function openChatWindow(theURL,nm) { //v2.0 info@onprod.co.uk
w=530;
h=818;

//url contains chat id, uid, uname
//var Fullurl = "http://localhost/b4f-2005/Chat/2004/frame.asp?"+theURL
//var Fullurl = "http://localhost/b4f-2005/Chat/2004/test/frame.asp?"+theURL
//var Fullurl = "http://localhost/b4f-2005/Chat/2005/frame.asp?"+theURL
//var Fullurl = "http://www.bar4fun.com/Chat/2004/frame.asp?"+theURL
var Fullurl = "http://localhost/b4f-2005/Chat/2006/frame.asp?"+theURL
var Fullurl = "http://www.bar4fun.com/Chat/2006/frame.asp?"+theURL

var ct = ((screen.height/2)-(h/2))
var cl = ((screen.width/2)-(w/2))
//alert(Fullurl);
//alert("gonna run chat");
window.open(Fullurl,nm,"width="+w+",height="+h+",top="+ct+",left="+cl+", scrollbars=yes, resizable=yes,status=yes");
nm.focus;
}

function RunChatWindow(theURL,nm) { //v2.0 info@onprod.co.uk
//fed from flash
w=530;
h=818;


//alert("gonna run chat");
//var Fullurl = "http://localhost/b4f-2005/Chat/2004/pop_chatscript.asp?UID="+theURL
//var Fullurl = "http://www.bar4fun.com/Chat/2004/pop_chatscript.asp?UID="+theURL
var Fullurl = "http://localhost/b4f-2005/Chat/2006/pop_chatscript.asp?UID="+theURL;
var Fullurl = "http://www.bar4fun.com/Chat/2006/pop_chatscript.asp?UID="+theURL;
//alert(Fullurl);
var ct = ((screen.height/2)-(h/2))
var cl = ((screen.width/2)-(w/2))
//alert(Fullurl);
window.open(Fullurl,nm,"width="+w+",height="+h+",top="+ct+",left="+cl+", scrollbars=yes, resizable=yes,status=yes");
nm.focus;
}
