function initdiv(){
	if(navigator.userAgent.indexOf('MSIE') == -1){
		if(!document.all && document.getElementById('roottable')){
			var strHeight = new String(parseInt(window.innerHeight-153)+'px');
			var strWidth = new String(parseInt(window.innerWidth-205)+'px');
			document.getElementById('roottable').style.height = strHeight;
			document.getElementById('divmain').style.height = strHeight;
			document.getElementById('divmain').style.width = strWidth;
			
			var strColumnWidth = new String(parseInt(window.innerWidth-445)+'px');
			document.getElementByName('last_column').style.width = strColumnWidth;
		}
		if(document.getElementById('eMail')){
			document.getElementById('eMail').innerHTML = mailstring('hc.lortnocne@ofni');
		}
	}
}
				
if(!document.all){
	window.onresize = function() { initdiv(); }
}

function mailstring(strMail){
	var strNewMail = "";
	for (x = strMail.length ; x >=0;x--)
		strNewMail =  strNewMail + strMail.substr(x,1);
	return strNewMail;
};
				
function mail(strMail){
	var strNewMail = '';
	for (x = strMail.length ; x >=0;x--)
		strNewMail =  strNewMail + strMail.substr(x,1);
	document.location = 'mailto:' + strNewMail;
};

function StatusbarMail(strMail){
	var strNewMail = '';
	for (x = strMail.length ; x >=0;x--)
		strNewMail =  strNewMail + strMail.substr(x,1);
	window.status = 'mailto:' + strNewMail;
};

function Copyfields(){
	if(document.WebshopAdresse.SelbeAdresse.checked == 1)
    {
			   document.WebshopAdresse.AnredeLiefer.value = '';
			   document.WebshopAdresse.NameLiefer.value = '';
			   document.WebshopAdresse.VornameLiefer.value = '';
			   document.WebshopAdresse.FirmaLiefer.value = '';
			   document.WebshopAdresse.ZusatzLiefer.value = '';
			   document.WebshopAdresse.AdresseLiefer.value = '';
			   document.WebshopAdresse.PostfachLiefer.value = '';
			   document.WebshopAdresse.PLZLiefer.value = '';
			   document.WebshopAdresse.OrtLiefer.value = '';
			   document.WebshopAdresse.TelefonLiefer.value = '';
			   document.WebshopAdresse.EmailLiefer.value = '';			   
    }
}
