function HelpWindow(file,window) {
	msgWindow=open(file,window,'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,scrollbars=yes,width=650,height=600');
	if (msgWindow.opener == null) msgWindow.opener = self;
}
function openFavorites(el) {
	var param="toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=350,height=700";
	param+=",left="+(screen.width-370)+",top=2";

	var w=open(HomeURL + '?bo=atFavorites.Tile&fn=list','favorites',param);
	w.opener=top;
	w.focus();
}
function goToURL(url) {
	if(url!=null && url.length) {
		var w=top;
		if(parent.frames["main"]!=null) w=parent.frames["main"];
		w.location=url;
	}
}
function imgChange(ImageName, ImagePath) {
	document.images[ImageName].src=ImagePath;
}
function mailWindow(file, window) {
    if ((navigator.appName.toLowerCase()=="netscape") & (navigator.appVersion.substring(0,1)=="4")) {
        msgWindow=open(file,window,'resizable=yes,width=730,height=450');
        if (msgWindow.opener == null) msgWindow.opener = self;
    }
    else {
        msgWindow=open(file,window,'resizable=yes,width=600,height=450');
        if (msgWindow.opener == null) msgWindow.opener = self;
    }
}
function newWindow(file, window) {
    if ((navigator.appName.toLowerCase()=="netscape") & (navigator.appVersion.substring(0,1)=="4")) {
        msgWindow=open(file,window,'resizable=yes,width=730,height=450');
        if (msgWindow.opener == null) msgWindow.opener = self;
    }
    else {
        msgWindow=open(file,window,'resizable=yes,width=600,height=450');
        if (msgWindow.opener == null) msgWindow.opener = self;
    }
}
function newWindowOpt(file, window, opt) {
    if ((navigator.appName.toLowerCase()=="netscape") & (navigator.appVersion.substring(0,1)=="4")) {
        msgWindow=open(file,window,opt);
        if (msgWindow.opener == null) msgWindow.opener = self;
    }
    else {
        msgWindow=open(file,window,opt);
        if (msgWindow.opener == null) msgWindow.opener = self;
    }
}
function newBrowser(file, window) {
    if ((navigator.appName.toLowerCase()=="netscape") & (navigator.appVersion.substring(0,1)=="4")) {
        brsWindow=open(file,window,'resizable=yes,width=730,height=450,status=yes,toolbar=yes,location=yes,menubar=yes,directories=yes');
        if (brsWindow.opener == null) brsWindow.opener = self;
    }
    else {
        brsWindow=open(file,window,'resizable=yes,width=600,height=450');
        if (brsWindow.opener == null) brsWindow.opener = self;
    }
}
function sendToFriendFolder(c,p,s) {
	if(c==null) c=0; //CatId //required
	if(p==null) p=0;
	if(s==null) s=0;
	//var w=open(HomeURL + '?bo=atFavorites.Tile&fn=list','favorites',param);
	var link=HomeURL + "?bo=b6portal.wo&fn=SendToFriend&mode=0&c="+c;
	if(p) link+="&p="+p; //page //optional
	if(s) link+="&s="+s; //sort //optional
	newWindowOpt(link,"SendToFriend","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=450");
}
function sendToFriendTopic(t) {
	if(t==null) t=0; //TopicId //required
	var link=HomeURL + "?bo=b6portal.wo&fn=SendToFriend&mode=1&t="+t;
	newWindowOpt(link,"SendToFriend","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=450");
}
function MsgBox(txt) {
	alert (txt);
}
function check_box(box_obj) {
	box_obj.checked = true;
}
function StatusSet(txt)
{
    window.status = txt;  
}
function StatusClear()
{
    window.status = "";
}
function openWindow(file,target,options) {
	var msgWindow=open(file,target,options);
	if(msgWindow!=null) {
		if(msgWindow.opener==null) msgWindow.opener=self;
		msgWindow.focus();
	}
}
function moc(ParentID, RefID) {
	document.getElementById('page_menu_tab_' + ParentID).attributes['onclick'].nodeValue='';location=HomeURL + '?bo=b6portal.wo&fn=Dir&c=' + RefID;
}



