function ShowDate(oDoc,cDate)
{
window.open("hole_datum.asp?backf="+oDoc+"&cDate="+cDate,"window", "height=220, width=340, resizeable=no,","");
}


function init_shop(store_id) {
 if (self.parent.frames.length != 0)
//   self.parent.location = document.location;  
   self.parent.location =  "http://www.sicon-net.de";  
}
// -->
function init_shop_1(store_id) {
}

function Zeige_Hilfe(id,return_url)
{
var trash;
var ag = window.navigator.userAgent;
var ver = parseInt(ag.charAt(ag.indexOf("/")+1),10);
trash = window.open("../scripts/hilfe.asp?id="+id +"&return_url="+return_url,"Hilfe","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=540,height=500,top=0,left=0");
trash.focus();  
 // var InfoWin = window.open("datei1.htm", "Zweitfenster");
//function CheckOpen() {
// if(InfoWin.closed == true) alert("Fenster wurde geschlossen");
// else alert("Fenster noch offen");
//}
}

function OpenPreviewPDF() {
	theFeats = "height=500,width=500,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no";
	window.open("showdoc.asp", "Preview", theFeats);
}

function check_checkbox()
{
 var c1, c2;
 c1 = document.submit_order.checkbox1.checked;
 c2 = document.submit_order.checkbox2.checked;

 if (c1) 
 {
    if (c2) 
    {
    //   document.submit_order.SubmitOrder.disabled = false;
	   document.submit_order.SubmitOrder.style.visibility = "visible";
       return (true);   
	}
	else
	{
 	  document.submit_order.SubmitOrder.style.visibility = "hidden";
     // document.submit_order.SubmitOrder.disabled = true;
      return (true);
	}
 }
 else
 {
   document.submit_order.SubmitOrder.style.visibility = "hidden";
   //document.submit_order.SubmitOrder.disabled = true;
   return (true);
 }
 
}

function check_checkbox_nur_agb()
{
 var c1, c2;
 c1 = true;
 c2 = document.submit_order.checkbox2.checked;

 if (c1) 
 {
    if (c2) 
    {
    //   document.submit_order.SubmitOrder.disabled = false;
	   document.submit_order.SubmitOrder.style.visibility = "visible";
       return (true);   
	}
	else
	{
 	  document.submit_order.SubmitOrder.style.visibility = "hidden";
     // document.submit_order.SubmitOrder.disabled = true;
      return (true);
	}
 }
 else
 {
   document.submit_order.SubmitOrder.style.visibility = "visible";
   //document.submit_order.SubmitOrder.disabled = true;
   return (true);
 }
 
}


// für Grafik warten
var i = 1;
var schicht = "layer";

var isDOM = document.getElementById?true:false;
var isNN = document.layers?true:false;
var isIE = document.all?true:false;

function verbergen(name) {
  if (isDOM) document.getElementById(name).style.visibility="hidden";
  if (isIE) document.all[name].style.visibility="hidden";
  if (isNN) document.layers[name].visibility="hidden";
}


function zeigen(name) {
  if (isDOM) document.getElementById(name).style.visibility="visible";
  if (isIE) document.all[name].style.visibility="visible";
  if (isNN) document.layers[name].visibility="visible";
}

function click(num){
  verbergen(eval('"' + schicht + i +'"'));
  zeigen(eval('"' + schicht + num +'"'));
  i = num;
}


function fertig()
{
   if(window.document.readyState=="complete")
   {
    verbergen('layer1');
   }
   else
   {
	// zeigen('layer');   
     window.setTimeout("fertig()", 20);
   }
}


function highlightrow(row, color)
{
  if (typeof(row.style) != 'undefined') 
  {
    row.oldcolor = row.style.backgroundColor;    
    row.style.backgroundColor = color;
  }
}

function resetrow(row)
{  
  row.style.backgroundColor = row.oldcolor;
}

function selectrow(row, rlId, rownum)
{
  table = document.getElementById(rlId);  
  if (table.listener && table.listener.setRow(rownum, row.oldcolor))
  {
    row.oldcolor = row.style.backgroundColor;    
  }
}


function popUpSG1(wintype)
{
  var nwl = (screen.width-800)/2;
  var nwh = (screen.height-600)/2;
  var popUpSG
  
  popUpSG=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600,left='+nwl+',top='+nwh+''); 
  popUpSG.window.focus(); 
  popUpSG.setTimeout('window.close()',90000);
}

function lade_seite_top(seite)
{
 top.location.href  = seite;	
}




//Highlight form element- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com
// onKeyUp="highlight(event)" onClick="highlight(event)"
//var highlightcolor="lightyellow"

// http://www.dynamicdrive.com/dynamicindex11/highlightform.htm

var highlightcolor="#ced3d5"


var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}

