
function hide(objId)
{
    var i = document.getElementById(objId).style;
    i.display = "none";
   alert(objId);
  //  document.getElementById(objId).innerHTML = "ahmed";
    
}
function hideall(){
		 document.getElementById('Tab0').style.display="none";
	  document.getElementById('Tab1').style.display="none";
	   document.getElementById('Tab2').style.display="none";
	    document.getElementById('Tab3').style.display="none";
		 document.getElementById('Tab4').style.display="none";

	}

function show(objId)
{
	 
	hideall();
	document.getElementById(objId).style.display="block";
}

function hideRef(){
	 
		document.getElementById('flash1').style.display="none";
			document.getElementById('flash2').style.display="none";
			document.getElementById('flash13').style.display="none";
		 
		 
	}

function showRef(objId)
{
	alert(objId);
	hideRef();
	document.getElementById(objId).style.display="block";
}


<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->




























function loadFormat(id){
	 
 
	top.location.href = "index.php?page=konfig&formatID=" + id ;
}

function loadMailing(formatID,id_org_format,mailID,image,designation,pdf){
	//alert(formatID);
	//alert(mailID);
	//alert(image);
	//alert(designation);
	//alert(pdf);
	
	top.location.href = "index.php?page=konfig&action=add" + "&formatID=" + formatID + "&id_org_format=" + id_org_format  + "&mailID="  +mailID + "&image="  +image+ "&designation="  +designation  + "&pdf="  +pdf  ;
}

 
function showSortOption(sMessage,from) {
       var divStatus = document.getElementById("divStatus");
       //divStatus.innerHTML = "Request completed: " + sMessage;    
       divStatus.innerHTML = " <p> <a href=\"index.php?page=konfig&comefrom=" + from + "&sort=timestamp    \">Maildate</a> | <a href=\"index.php?page=konfig&comefrom=" + from + "&sort=absteigend    \">Formatname</a>| <a href=\"index.php?page=konfig&comefrom=" + from + "&sort=winner    \">Winner</a></p></div>"  ;            
   }

 		
function  drucken(theURL,winName,features) { //v2.0
 
		//theURL = theURL+'?show_all=y'; // Reset Session ~ Default Neustart alle Anzeigen
		window.open(theURL,'winName','features');
		 
	}

 
 


function saveFormat(){
	
	top.location.href = "index.php?page=konfig&action=save";
}
function abort(){
	//top.location.href = "konfigurieren.php?action=abort" + "&formatID=" + formatID + "&mailID="  +mailID  ;
}


function creatNewFormat(){
	top.location.href = "index.php?mode=creatNewFormat" ;
}

function konfigurieren(){
	alert("---");
	top.location.href = "konfigurieren.php?" ;
	alert("--");
	 
}

function leeren(){
	//top.location.href = "index.php?submit=clear&page=create" ;
}

function update(){
	//alert('update');
	//top.location.href = "index.php?submit=update" ;
}
 

function test(){
	alert('update');
	 
}
 




function klippklapp(id)

{
if (document.getElementById(id).style.visibility == 'none')
{
document.getElementById(id).style.visibility='block';
}
else
{
document.getElementById(id).style.visibility='none';
}
}



// hier nun die IDs der auszublendenen Elemente notieren

function hideFormElements()
{
    hide("updateform");
    hide("box2");
    hide("info1");
    hide("info2");
};


function showForm(text) {
	var divStatus = document.getElementById("formMailingName");
   divStatus.innerHTML = " <form method=\"POST\" action=\" \" Name=\"FormMailingName\" id=\"FormMailingName\">  "+
    " <input type=\"hidden\" name=\"action\" value=\"NewMailingName\"> "+
" <p>Mailing Name:<br><input name=\"MailingName\" type=\"text\" size=\"40\"  ></p>  "+
" <input type = \"submit\" name=\"new_mailing_name\" value=\"<?=$zContent->get_text(62)?>\"   style=\"width: 50px;\">  "+
"</form>";

}



function hideMyFormElements(frname) {
	//alert (parent.location.href);
	 
	var i = document.forms[frname].
	 i.display = "none";
	//parent.location.href = ""+parent.location.href+"";           
}

 
 
function hideDivForm(){
	document.getElementById('"updatemyForm"').style.display = "none";
	document.getElementById('progressBar').style.display = "block";
	return true;
	}

    
    


function hideDivForm(){
	alert("test");
	var obj = document.getElementById("updatemyForm");
	 obj.style.display = "none";
	}

    
function refresh(){
	 
	parent.location.reload();

	  
	}

   
function an()
{document.getElementById('successUpdate').style.visibility = 'visible';}

function aus()
{document.getElementById('successUpdate').style.visibility = 'hidden';}
    
