function TipEnVen(HeadlineCSS, DescriptionCSS, ButtonCSS, FriendEmailText, OwnEmailText, OwnNameText, MessageTextText, ButtonText, PageLink, hostName ) {
	var html = '<html>\n<body>\n';
	html += '<style type=\"text/css\">\n';
	html += ' .TipHeadlineCSS { ' + HeadlineCSS + ' }\n';
	html += ' .TipDescriptionCSS { ' + DescriptionCSS + ' }\n';
	html += ' .TipButtonCSS { ' + ButtonCSS + ' }\n';
	html += '</style>\n';
	html += '<form name=\"theform\" method=\"post\" action=\"' + window.location.protocol + '//' + hostName + '/sendtofriend">\n';
	html += '<INPUT TYPE="HIDDEN" NAME="pageid" VALUE="'+PageLink.replace( /\?/, "??" )+'">\n';
	html += '<TABLE  border=0 cellspacing=0 cellpadding=0 width=400>\n';
	html += '<TR>\n<TD class="TipHeadlineCSS">' + FriendEmailText + '</TD>\n<TD><INPUT TYPE="TEXT" NAME="friendemail" VALUE="" SIZE=4 class="TipDescriptionCSS" style="width:300"></TD>\n</TR>\n';
	html += '<TR>\n<TD class="TipHeadlineCSS">' + OwnEmailText + '</TD>\n<TD><INPUT TYPE="TEXT" NAME="ownemail" VALUE="" SIZE=4 class="TipDescriptionCSS" style="width:300"></TD>\n</TR>\n';
	html += '<TR>\n<TD class="TipHeadlineCSS">' + OwnNameText + '</TD>\n<TD><INPUT TYPE="TEXT" NAME="ownname" VALUE="" SIZE=4 class="TipDescriptionCSS" style="width:300"></TD>\n</TR>\n';
	html += '<TR>\n<TD class="TipHeadlineCSS" VALIGN="top">' + MessageTextText + '</TD>\n<TD><TEXTAREA name="messagetext" cols=10 rows=10 class="TipDescriptionCSS" style="width:300;height:150"></TEXTAREA></TD>\n</TR>\n';
	html += '<TR>\n<TD class="TipHeadlineCSS">\n<input type="button" name="" value="' + ButtonText + '" onclick="if ( theform.friendemail.value == \'\' ) { alert(\'`' + FriendEmailText + '` må ikke være tom!\'); return;}; if ( theform.ownemail.value == \'\' ) { alert(\'`' + OwnEmailText + '` må ikke være tom!\'); return;}; if ( theform.ownname.value == \'\' ) { alert(\'`' + OwnNameText + '` må ikke være tom!\'); return;}; theform.submit();" style="cursor:pointer;">\n</TD>\n</TR>\n';
	html += '</TABLE>\n';
	html += '</form>\n';
	html += '</body>\n</html>\n';
	var width = '420';
	var height = '275';
	var p = 'scrollbars=no, resizable=yes, toolbar=no, menubar=no, status=yes, location=no, left=85,top=20, height=' + height + ', width=' + width;
	var win2=window.open('',"tip",p);
	while (win2 == undefined) {};
	while (win2.document == undefined) {};
	while (win2.document.body == undefined) {};
	while (win2.document.body.innerHTML == undefined) {};
	win2.document.body.innerHTML = html;
	win2.document.title = 'Tip en ven';
}	
