
if (!parent.frames.length) {
	//alert ('\nDiese Seite ist Bestandteil eines Framesets ! Sie werden umgeleitet ...\nThis page is part of a frameset ! You will be redirected ...');
	//self.location = 'http://www.qrp4u.de/?document=' + document.location;
} else {
	var str = new String(parent.location);
	if (str.indexOf('http://www.ez-wap.de') != 0) {
		//alert ('\nDiese Seite ist Bestandteil eines Framesets ! Sie werden umgeleitet ...\nThis page is part of a frameset ! You will be redirected ...');
		//Window.location = 'http://www.qrp4u.de/?document=' + document.location;
	}
}

// convert all characters to lowercase to simplify testing
var agt=navigator.userAgent.toLowerCase();
// *** BROWSER VERSION ***
var major = parseInt(navigator.appVersion);
var minor = parseFloat(navigator.appVersion);


function setCookie (coknam, value) {
	expires = new Date();
	expires.setTime (expires.getTime() + (1000 * 60 * 60 * 24 * 100));
	document.cookie = coknam + "=" + escape (value) + "; expires=" + expires.toGMTString() +  "; path=/";
	return null;
}

function getCookie (coknam) {
	var doccok = document.cookie; 
	coknam = coknam + "=";
	var coklen = doccok.length;
	var cokbgn = 0;
	while (cokbgn < coklen) {
		var varbgn = cokbgn + coknam.length;
		if (doccok.substring(cokbgn, varbgn) == coknam) { 
		var varend = doccok.indexOf (";", varbgn);
		if (varend == -1) varend = coklen;
		return unescape(doccok.substring(varbgn, varend));
	}
	cokbgn = doccok.indexOf(" ", cokbgn) + 1;
	if (cokbgn == 0) break;
	}
	return "";
}

function delCookie (coknam) {
	document.cookie = coknam + "=" + "; expires=Thu, 01-Jan-70 00:00:00 GMT" +  "; path=/";
	return null;
}

function getId () {
	var pre = Math.random();
	var rnd = "@" + (Math.round(pre * (1000000-1))+1) + Math.random();
 	return rnd;
}

if (!getCookie('User')) {
	setCookie('User', getId())
}




//parent.control.document.form.agt.value = agt;
//parent.control.document.form.major.value = major;
//parent.control.document.form.minor.value = minor;
//parent.control.document.form.doc.value = document.location;
//parent.control.document.form.user.value = getCookie('User');
//parent.control.document.form.rnd.value = getId();


//parent.control.document.form.submit();
//parent.control.location = 'http://www.send-a-letter.de/cgi-bin/control.pl';
