var copytoclip=1

function anmeldung() {
	var email = document.forms['live'].elements['email'].value;
	var ok = false;
	if(email == 'you@domain.com'){
		window.alert('please enter your email address!');
	}
	else {
		ok = true;
	}
	if(ok == true){
		if(email.search(/@.+/) != -1){
			var user = document.forms['live'].elements['email'].value.split('@')[0];
			if(user.length > 0){
				 goopen(user, email);
				}
			else {
				window.alert('Please enter a valid email address!');
			}
				}
		else{
			window.alert('Please enter an email address with @!');
		}
	}
	
}
window.onload = function(){
	var objTable = document.getElementById('subtable');
	objTable.style.border = '0px';
}



function HighlightAll(theField) {
	var tempval=eval("document." + theField)
	tempval.focus();
	tempval.select();
	if (document.all && copytoclip == 1){
		therange=tempval.createTextRange();
		window.status="Bitte gib Deine Emailadresse ein!";
		setTimeout("window.status=''",1800);
	}
}

function OnClick777(sTarget){
	if(sTarget == '_blank'){
		window.open('http://777livecams.com/?stid=w9_0000m&id=A54633&l=redrose&h=off', '777livecams', 'width=800,height=600,left=0,top=0');
	}
	else if(sTarget == '_self'){
		window.location.href = 'http://777livecams.com/?stid=w9_0000m&id=A54633&l=redrose&h=off';
	}
	else {
		goopen('', '');
	}
}

function  goopen(user, email){
	window.open('http://mm.777partner.com/t7lc/banner/goto777.php?stid=w9_0000m&id=A54633&targeturl=aW5kZXgucGhw&l=redrose&h=off&user=' + user + '&email=' + email,'anmeldung','toolbars=0,locationbar=0,left=200,top=200');
			
}
document.write('<style>');
document.write('	.livesignup{');
document.write('	}');
document.write('	.livesignup td, .livesignup input{');
document.write('		width:0px;');
document.write('		height:0px;');
document.write('		border:0px solid #F00;');
document.write('		padding:0px;');
document.write('		margin:0px;');
document.write('	}');
document.write('</style>');
document.write('<div class="livesignup" id="LiveSignup777" ');
document.write('	align="center" ');
document.write('	style="vertical-align:top;');
document.write('			padding-top:0px;');
document.write('			padding-bottom:0px;');
document.write('			padding-right:0px;');
document.write('			padding-left:0px;');
document.write('			text-align:center;');
document.write('			background-image: url(http://mm.777partner.com/t7lc/img/signupbanner/en/160x600_001.jpg);');
document.write('			width:160px;');
document.write('			height:600px;">');
document.write('	<form name="live" target="_blank" onSubmit="return false;">');
document.write('		<table align="center" cellpadding="0" cellspacing="2" border="0">');
document.write('			<tr>');
document.write('				<td rowspan="3" height="0" Onclick="OnClick777(\'_blank\');" ');
document.write('					width="100%" style="height:0px;cursor:pointer;">');
document.write('					&nbsp;');
document.write('				</td>');
document.write('				<td Onclick="OnClick777(\'_blank\');" ');
document.write('						style="cursor:pointer;');
document.write('								padding-right:10px;');
document.write('								padding-top:95px;');
document.write('								text-align:left;');
document.write('								font-family:Arial;');
document.write('								color:#ffffff;');
document.write('								font-size:11px;');
document.write('								height:18px;');
document.write('								width:130px;');
document.write('								background-color:transparent;"/>');
document.write('						enter email address');
document.write('				<td>');
document.write('			</tr>');
document.write('			<tr>');
document.write('				<td style="padding-right:10px;text-align:left;height:20px;">');
document.write('				<input 	onClick="HighlightAll(\'live.email\');" ');
document.write('						style="float:none;');
document.write('								font-family:Arial;');
document.write('								color:#000000;');
document.write('								font-size:11px;');
document.write('								height:18px;');
document.write('								width:130px;');
document.write('								border:1px solid #ffffff;');
document.write('								background-color:#FFFFFF;" ');
document.write('						type="text" ');
document.write('						name="email" ');
document.write('						id="inputSignup" ');
document.write('						value="you@domain.com"/>');
document.write('				<td>');
document.write('			</tr>');
document.write('			<tr>');
document.write('				<td style="padding-right:10px;text-align:left;">');
document.write('					<input style="float:none;font-family:Arial;');
document.write('							font-size:10.5px;');
document.write('							height:18px;');
document.write('							width:130px;');
document.write('							border:1px solid #ffffff;');
document.write('							background-color:#849ab5;');
document.write('							color:#000000;" ');
document.write('					type="button" ');
document.write('					OnClick="anmeldung();" ');
document.write('					value="register now">');
document.write('				</td>');
document.write('				<td>');
document.write('					&nbsp;');
document.write('				</td>');
document.write('			</tr>');
document.write('		</table>');
document.write('		<div id="subtable" style="display:block;border:.5px solid #000;">');
document.write('			<table 	style="margin-top:0px;');
document.write('						height:420px;');
document.write('						width:155px;');
document.write('						border:0px solid #F00;" ');
document.write('				cellpadding="0" cellspacing="0" border="0"> ');
document.write('				<tr>');
document.write('					<td Onclick="OnClick777(\'_blank\');" ');
document.write('						style="cursor:pointer;');
document.write('								height:420px;');
document.write('								border:0px solid #F00;">');
document.write('						&nbsp;');
document.write('					</td>');
document.write('				</tr>');
document.write('			</table>');
document.write('		</div>');
document.write('	</form>');
document.write('</div>');
document.write('');
document.write('');
