





	function tabs(me){
		//alert("hi")
		tbs=me.parentNode
		alert(tbs)
		//RDbg(objs(tbs))
//		for(t=0;t<tbs.rows.length;t++)
//		alert(tbs[t])
	}








    
    function RDbg(s){
        $("RDbg").style.display='';$("RDbg").value=s
//        var x = document.createElement('TEXTAREA');
//        document.insertBefore(x,document);
//alerts("hi");
//x.innerText="1111";
//        x.style.position='absolute'
//        x.style.visible=''
//        document.appendChild(x)
//        x.style.display='block'
//        x.border='1px dashed red'
//        x.setAttribute('id','RDbg_')
//        x.style.border='1px dashed red'
//        x.width='100%';x.height='100%';
//        x.style.display='block';
//        $('RDbg_').value=s;
//            x.id=
        
        
//        prompt('',(document['firstChild'].innerHTML))
//        W("<textarea style='position:absolute;border:1px dashed red;bgcolor:#FEE' id='RDbg'>"+s+"</textarea>")
    }
    
    function objs(obj){
        x="";
        for(o in obj)
            x+=o+" = "+obj[o]+"\n"
        return(x)
    }



	function W(s){document.write(s)}
	function B(s){document.write(s+'<BR>')}
	function N(s){document.write(s+'\n')}


/**/
    function inArray(a,e){
        for(i=0;i<a.length;i++)
            if(a[i]==e)
                return i;
    }
    

/** /    
    Array.prototype.inArray = function (value) {
	    var i;
	    for (i=0; i < this.length; i++) {
		    if (this[i] === value) {
			    return true;
		    }
	    }
	    return false;
    };
/**/

	function $() {
		var elements = new Array();
		for (var i = 0; i < arguments.length; i++) {
			var element = arguments[i];
			if (typeof element == 'string')
				element = document.getElementById(element);
			if (arguments.length == 1)
				return element;
			elements.push(element);
		}
		return elements;
}






	function _(s){return(document.getElementById(s))}
	function __(s){return(document.getElementsByTagName(s))}
	function W(s){document.write(s)}
	function B(s){document.write(s+'<BR>')}
	function N(s){document.write(s+'\n')}
	function arr(st,sp){return(eval('st.toString().split(/'+(sp||',')+'/g)'))}
	function $() {
		var elements = new Array();
		for (var i = 0; i < arguments.length; i++) {
			var element = arguments[i];
			if (typeof element == 'string')
				element = document.getElementById(element);
			if (arguments.length == 1)
				return element;
			elements.push(element);
		}
		return elements;
}

function setHomepage() {
    if (document.all) {
   
        document.body.style.behavior = 'url(#default#homepage)';
        document.body.setHomePage('http://www.im2all.com');

    }
    if (window.Firefox) { alert('firefox')
    }
    else if (window.sidebar) {
        if (window.netscape) {
            try {
               
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            }
            catch (e) {
                alert("this action was aviod by your browser，if you want to enable，please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true");
            }
        }
        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
        prefs.setCharPref('browser.startup.homepage', 'http://www.im2all.com');
    }
}
function SetHome() {
    var mywind;
if (document.all){
    document.body.style.behavior = 'url(#default#homepage)';
    document.body.setHomePage('http://www.im2all.com');
}

// If it's Netscape 6, tell user to drag link onto Home button
// Be sure to change the "http://www.im2all.com\"
// to the URL you want them to bookmark.
else if (document.getElementById) {
mywind = window.open("", "", "status,height=200,width=300")
mywind.document.write('<a href="http://www.im2all.com">Home Page. اسحب هذا الرابط الى</a>');
mywind.document.write('</br>');
mywind.document.write('أو');
mywind.document.write('</br>');
mywind.document.write('من المتصفح اختر Tools - Options - HomePage - اكتب http://www.im2all.com/');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
 mywind. document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
 mywind. document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
//  End -->
}

