function Navigator(){
alert("navigator.appName");

}

function SubmitForm2()
          {
           
			 document.getElementById('UploadForm').style.display='none';
             document.getElementById('UploadFormTIF').style.display='block';
                        
          }
function SubmitForm3()
          {
           <!--if (document.forms['UploadTIF'].elements['userfile'].value!="")
            {
             document.forms['UploadTIF'].submit();
             document.getElementById('UploadFormTIF').style.display='none';
            }
          }
function Refresh_Format(addurl)
          {
           if (document.forms['Auswahl_Format'].elements['formate'].value!="")
            {
               if (addurl!=undefined)
                {
                 document.forms['Auswahl_Format'].action=document.forms['Auswahl_Format'].action + addurl;
                }
               document.forms['Auswahl_Format'].submit();

            }
          }
function Step2_Navigate(url,typ)
          {
           
             document.forms['Auswahl_Format'].action = url;
             document.forms['Auswahl_Format'].submit();
            
          }
function Step2_Navigate_to4(url,typ)
          {
           
             document.forms['Warenkorb'].action = url;
             document.forms['Warenkorb'].submit();
            
          }
function Step2_Navigate_to5(url,typ)
          {
           
             document.forms['Bestelldaten'].action = url;
             document.forms['Bestelldaten'].submit();
            
          }

 function Bestellen()
          {
           if (document.forms['Bestellung'].elements['AGB'].checked==false)
            {
             alert('Bitte akzeptieren Sie zunächst unsere allgemeine Geschäftsbedingungen.');
            }
           else
            {
             document.forms['Bestellung'].submit();

            }
          }
function AGB()
          {
           var win;
           win = open('AGB.html','www.my-art-print.de AGB','width: 550px, height: 350px, scrollbars=yes, toolbar=no');
           win.focus();
          }


function FensterOeffnen (Adresse) {
  Fenster1 = window.open(Adresse, "Zweitfenster", "width=412,height=600,left=100,top=200");
  Fenster1.focus();
}
function FensterOeffnenBig (Adresse) {
  Fenster1 = window.open(Adresse, "Zweitfenster", "width=730,height=600,left=100,top=200,scrollbars=yes");
  Fenster1.focus();
}
function Refresh_forall(addurl,elementPut,Auswahl_Format)
          {
           if (document.forms[Auswahl_Format].elements[elementPut].value!="")
            {
               if (addurl!=undefined)
                {
                 document.forms[Auswahl_Format].action=document.forms[Auswahl_Format].action + addurl;
                }
               document.forms[Auswahl_Format].submit();
               document.getElementById(elementPut).style.display='none';
               document.getElementById('Waiting').style.display='block';
            }
          }
function AddRefresh(addurl,Auswahl_Format)
          {
           
               if (addurl!=undefined)
                {
                 document.forms[Auswahl_Format].action=document.forms[Auswahl_Format].action + addurl;
                }
                document.forms[Auswahl_Format].submit();
               
          
          }
          
	function SubmitForm()
          {
           if (document.forms['Upload'].elements['userfile'].value!="")
            {
             document.forms['Upload'].submit();
             
            }
          }







function popwin(url,name,width,height,flags ){
		if( height=='' ) height = 500;
		if( width=='' ) width = 400;
		if( !flags ) flags = "toolbar=yes,resizable=yes,scrollbars=yes,location=yes";
		wName = window.open( url,name+"Window",flags + ",width="+width+",height=" + height );
	}
function toggle(obj) {
	var el = document.getElementById(obj);
    
		if ( el.style.display != 'none' ) {
				el.style.display = 'none';
                
		} else {
                
				el.style.display = 'inline';
		}
}


function createRequestObject() {
  var ro;
  var browser = navigator.appName;
  if(browser == "Microsoft Internet Explorer"){
    ro = new ActiveXObject("Microsoft.XMLHTTP");
  }else{
    ro = new XMLHttpRequest();
  }
  return ro;
}
 

 
function do_script() {
  var http = createRequestObject();
  document.getElementById("Waiting").innerHTML = '<img src="_grafic/ajax-loader.gif">';
  http.open('GET','',true);
  http.onreadystatechange = handleResponse;
  http.send(null);
}
function handleResponse() {
    if(http.readyState == 4){
        var response = http.responseText;
        document.getElementById("Waiting").innerHTML = response;
    }
}
