var AlertHitStatus = "out";
var AlertHitImage = "images/space.gif";
var AlertHitChange = 0;
function langSwitch(Lagdata) {
	
}

function AlertHit(ibKca, StatusQuo) {
	AlertHitStatus = StatusQuo;
	AlertHitImage = ibKca;
	MousepicPlaceCheck;
}


function MousepicPlaceCheck(e) {
var pic = document.getElementById('mousepic');
var x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX, 
y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;


if (!!pic) {
	
	if(AlertHitStatus == 'out')
				{
				    pic.style.left = "-6000px";
    				pic.style.top = "-6000px";
					AlertHitImage = 'images/space.gif';
					pic.src = AlertHitImage;
					AlertHitChange = 0;
				}
	else if(AlertHitStatus == 'over')
				{
					if( AlertHitChange == 0)
						{
							pic.src = AlertHitImage;
							AlertHitChange = 1;
						}
					
				    pic.style.left = (x + 20) + "px";
    				pic.style.top = (y + 20) + "px";	
				}

			}
    
}

function delQuest(elementTitel){
requestion = confirm("Soll das Bild: " + elementTitel + " wirklich aus der Datenbank geloescht werden?");
if (requestion == false) 
	{
	  	return false;
	}
else 
	{
		return true;
	}
	
}

function oldImgCheckbox() {

if(document.form1.oldImageCheck.checked==true)
	{
		document.form1.ImageLoader.disabled = true; 
	} 
else 
	{
		document.form1.ImageLoader.disabled = false; 
	}
}


function tcImageNew(aktForm, stat) {
if(stat == "true")
	{
		document.tc[aktForm].tc_newImage.disabled = true; 
	} 
else if (stat == "false") 
	{
		document.tc[aktForm].tc_newImage.disabled = false; 
	}

}



function ClientWidth () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function ClientHeight () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function resBuild () {
  if (ClWidth != ClientWidth() || ClHeight != ClientHeight())
    location.href = location.href;
}

/* Netscape */
if (!window.ClWidth && window.innerWidth) {
  window.onresize = resBuild;
  ClWidth = ClientWidth();
  ClHeight = ClientHeight();
}

function getBigImg() {
	var BigImg = document.getElementById("fullImage");    	
	var InfoContainer = document.getElementById("ImgInfoContainer");   
	var BigImgSize = BigImg.width;
	InfoContainer.style.width = BigImgSize + "px";
}


