
var VersionAllSync = "2.7.56"
var VersionAllDup = "1.7.10"
var VersionGetFoldersize = "1.4.12"

var Slogan = "AllSync";
window.defaultStatus = Slogan; //"AllSync - Dateisynchronisation und Datensicherung"

ie = (    (document.all) 
       && (window.offscreenBuffering) ) ? true : false;
nn = (    (document.captureEvents) 
       && (!document.getElementById)  ) ? true : false;
mz = (    (document.getElementById) 
       && (!document.all) 
       && (document.documentElement)  ) ? true : false;
op = (    (document.getElementById) 
       && (navigator.userAgent.indexOf('Opera') != -1) ) ? true : false;

function SetStatus(mText) {
	
	if (String(mText) == "undefined")
		status = Slogan;
	else
		status = mText;
	
}

function SetStat(obj) {
	
	if ( ie == true)
	{
		window.status = obj.innerText;
	}
	else
	{
		window.status = Slogan;
	}
	

}

var ASP = "../www.thummerer-software-design.de/asp/"
var Lokal = "../localhost/asp/"

function LogOnReg(){
	if ( Offline() == 1 )
		var URL = Lokal;
	else
		var URL = ASP;
	top.location.href = URL + "regb.asp"
}

function LogOnRegEng(){
	if ( Offline() == 1 )
		var URL = Lokal;
	else
		var URL = ASP;
	top.location.href = URL + "regb_eng.asp"
}

function LogOnReseller(){
	
	if ( Offline() == 1 )
		var URL = Lokal;
	else
		var URL = ASP;
	top.location.href = URL + "reseller.asp"
}

function JumpToNewsletterFree(){
	
	if ( Offline() == 1 )
		var URL = Lokal;
	else
		var URL = ASP;
	top.location.href = URL + "newsletter.asp"
}

function Offline(){

	if ( document.location.href.substr(0,15).toLowerCase() == "../192.168./default.htm" || document.location.href.substr(0,16).toLowerCase() == "../localhost/default.htm")
		return 1;
	else
		return 0;
}

function OpenPic( PicPath, PicW, PicH )
{
	PicPath = "pics/" + PicPath;
	win = window.open('','PicWindow','width=' + (PicW+20) + ',height=' + (PicH+20) + ',resizable=yes')
	
	//win.document.writeln (win.document.images.length);
	
	
	
	if( win.document.images.length == 0 || win.document.images.length == undefined)
	{
		win.document.writeln( '<html>' );
		win.document.writeln( '<head>' );
		win.document.writeln( '<TITLE>Screenshot</TITLE>' );
		win.document.writeln( '</head>' );
		win.document.writeln( '<body bgcolor="white" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">' );
		win.document.writeln( '<table height="100%" align="center" valing="center"><tr><td>' );
		win.document.writeln( '<a href="javascript:window.close();" onFocus="this.blur()" > <img src="' + PicPath + '" width="' + PicW + '" height="' + PicH + '" alt="Close" border="0"></a>' );
		win.document.writeln( '</td></tr></table>' );
		win.document.writeln( '</body></html>' );
	}
	else
	{
		win.resizeTo(PicW+12,PicH+31)
		img = win.document.images[0];
		img.width = PicW;
		img.height = PicH;
		img.src = PicPath;
	}

	win.focus();
	
}

/* FORMULAR weiterempfehlen */

function CheckEingaben()
{
	
	if (document.form1.mitteilung.value == "" || document.form1.name1.value == ""  || document.form1.email.value == "" || document.form1.emailEmp.value == "" || document.form1.nameEmp.value == "")
		alert("Füllen Sie bitte alle Felder aus!");
	else
	{

		document.form1.submit();
						
	}
}

function CheckEingabenKontakt()
{
	
	if (document.form1.betreff.value == "" || document.form1.mitteilung.value == "" || document.form1.name1.value == ""  || document.form1.email.value == "" || document.form1.email2.value == "")
		alert("Füllen Sie bitte alle Felder aus, die mit einem * gekennzeichtnet sind.");
	else
	{
		if (document.form1.email.value != document.form1.email2.value)
			alert("Die Bestätigung der Emailadresse ist nicht korrekt!");
		else
			document.form1.submit();
						
	}
}

function CheckEingabenSupport()
{
	
	if (document.form1.betreff.value == "" || document.form1.os.value == "" || document.form1.version.value == "" || document.form1.mitteilung.value == "" || document.form1.name1.value == ""  || document.form1.email.value == "" || document.form1.email2.value == "")
		alert("Füllen Sie bitte alle Felder aus, die mit einem * gekennzeichnet sind.");
	else
	{
		if (document.form1.email.value != document.form1.email2.value)
			alert("Die Bestätigung der Emailadresse ist nicht korrekt!");
		else
			document.form1.submit();
	}
}
