function openMicroSite(sUrl) {
	micrositeWindow = window.open(sUrl, 'micrositeWindow', 'dependent=yes,height=600,width=790,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=200,left=200');
}

function openVideo(sUrl) {
	videoWindow = window.open(sUrl, 'videoWindow', 'dependent=yes,height=260,width=340,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=200,left=200');
}

function ImageZoom(AID, CID) {
	caption = document.getElementById('caption' + CID).innerHTML;
	caption = escape(caption);
	izw = window.open('image_zoom_v2.php?IMG=' + AID + '&Caption=' + caption, AID, 'width=280, height=380, scrollbars=yes, resizable=yes')
}

function ImageZoom_Gallery(AID, CID, IsOldID) {
	caption = document.getElementById('caption' + CID).innerHTML;
	caption = escape(caption);
	izw = window.open('image_zoom_v2.php?IsOldID=' + IsOldID + '&IMG=' + AID + '&Caption=' + caption, AID, 'width=280, height=380, scrollbars=yes, resizable=yes')
}

function T2ClickTrackerMedia(Key) {
	var eURI = encodeURI("send_clicktracker_for_media.php?id=" + Key);
	http_request = false;
	
	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		http_request = new XMLHttpRequest();
	} else if (window.ActiveXObject) { // IE
		try {http_request = new ActiveXObject("Msxml2.XMLHTTP");}
		catch (e) {
			try {http_request = new ActiveXObject("Microsoft.XMLHTTP");}
			catch (e) {}
		}
	}
	if (!http_request) {return false;}
	// http_request.onreadystatechange = void;
	http_request.open('GET', eURI, true);
	http_request.send(null);
}


var compulsoryFieldsIn=new Array();
compulsoryFieldsIn[0]="stdIn3";
function checkFieldsIn ()
{
var checkOK=true;
for (var i=0; i<compulsoryFieldsIn.length; i++)
{
var cfObj=document.getElementById(compulsoryFieldsIn[i]);
if (cfObj!=null)
{
if (cfObj.type.toLowerCase()=="text")
{
if (cfObj.value.match(/^\s*$/)) checkOK=false;
}
else if (cfObj.type.toLowerCase()=="radio" || cfObj.type.toLowerCase()=="checkbox")
{
var tmpObj=document.getElementsByName(cfObj.name);
var tmpCheck=false;
for (var j=0; j<tmpObj.length; j++)
{
if (tmpObj[j].checked==true)
{
tmpCheck=true;
break;
}
}
checkOK=tmpCheck;
}
else if (cfObj.type.toLowerCase().indexOf("select")>=0)
{
if (compulsoryFieldsIn[i]=="stdIn12" && cfObj.selectedIndex==0) checkOK=false;
}
}
if (!checkOK) break;
}
if (checkOK) document.getElementById('subscribe').submit();
else window.alert("Bitte füllen Sie alle mit einem * markierten Felder aus.");
}