function goNewWin(page) {

	TheNewWin =window.open(page, '' ,'fullscreen=no,toolbar=no,width=200,height=200,left=100,top=100,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes'); 

}

function load(page) {
	var load = window.open(page,'','scrollbars=no,menubar=no,height=450,width=500,resizable=yes,toolbar=no,location=no,status=no'); 

}

function showHide(elementid){
	if (document.getElementById(elementid).style.display == 'none'){
		document.getElementById(elementid).style.display = '';
	}else{
		document.getElementById(elementid).style.display = 'none';
	}
}

function show(elementid){
	document.getElementById(elementid).style.display = '';
}

function hide(elementid){
	document.getElementById(elementid).style.display = 'none';
}

Rot13 = {
    map: null,

    convert: function(a) {
        Rot13.init();

        var s = "";
        for (i=0; i < a.length; i++) {
            var b = a.charAt(i);
            s += ((b>='A' && b<='Z') || (b>='a' && b<='z') ? Rot13.map[b] : b);
        }
        return s;
    },

    init: function() {
        if (Rot13.map != null)
            return;
              
        var map = new Array();
        var s   = "abcdefghijklmnopqrstuvwxyz";

        for (i=0; i<s.length; i++)
            map[s.charAt(i)] = s.charAt((i+13)%26);
        for (i=0; i<s.length; i++)
            map[s.charAt(i).toUpperCase()] = s.charAt((i+13)%26).toUpperCase();

        Rot13.map = map;
    },

    write: function(a) {
        document.write(Rot13.convert(a));
    }
}

function roll_img(element, img_src){
	element.src = img_src;
}

function var_img(element, img_src){
	document.getElementById(element).src = img_src;
}
