	function check() {
		message=("åá ÇäÊ ãÊÃßÏ ãä ÇáÍÐÝ¿")
			if(confirm(message)) {
				return true
			} else {
				return false
			}
	}

function showTab(obj1,obj2){
	document.getElementById(obj2+'Div').style.display='none';
	document.getElementById(obj1+'Div').style.display='block';
	
}

// -------- Editor ----------------------------------

// load htmlarea
_editor_url = "";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
/////////////////////////
							var config = new Object();    // create new config object
							
							config.width = "470px";
							config.height = "400px";
							config.bodyStyle = 'background-color: white; font-family: "Verdana"; font-size: x-small; ';
							config.debug = 0;
							
							// NOTE:  You can remove any of these blocks and use the default config!
							
							config.toolbar = [
							['fontname'],
							['fontsize'],
							['fontstyle'],
							['linebreak'],
							['bold','italic','underline','separator'],
							//  ['strikethrough','subscript','superscript','separator'],
							['justifyleft','justifycenter','justifyright','separator'],
							['OrderedList','UnOrderedList','Outdent','Indent','separator'],
							['forecolor','backcolor','separator'],
							['HorizontalRule','Createlink','InsertImage','htmlmode','separator'],
							['about','help','popupeditor'],
							];
							
							config.fontnames = {
							"Arial":           "arial, helvetica, sans-serif",
							"Courier New":     "courier new, courier, mono",
							"Georgia":         "Georgia, Times New Roman, Times, Serif",
							"Tahoma":          "Tahoma, Arial, Helvetica, sans-serif",
							"Times New Roman": "times new roman, times, serif",
							"Verdana":         "Verdana, Arial, Helvetica, sans-serif",
							"impact":          "impact",
							"WingDings":       "WingDings"
							};
							config.fontsizes = {
							"1 (8 pt)":  "1",
							"2 (10 pt)": "2",
							"3 (12 pt)": "3",
							"4 (14 pt)": "4",
							"5 (18 pt)": "5",
							"6 (24 pt)": "6",
							"7 (36 pt)": "7"
							};
							
							//config.stylesheet = "main.css";
							
							config.fontstyles = [   // make sure classNames are defined in the page the content is being display as well in or they won't work!
							{ name: "headline",     className: "headline",  classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },
							{ name: "arial red",    className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },
							{ name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" }
							
							// leave classStyle blank if it's defined in config.stylesheet (above), like this:
							//  { name: "verdana blue", className: "headline4", classStyle: "" }  
							];							
// --- End Editor ------------------------------


// --- Menu ------------------------


/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

// --- End Menu --------------------------------