<!--
function tellalert(srtvar)
{
var agree=alert(srtvar);}
// -->

function bookmark(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function popup2(seite,x)
{window.open(seite,x,"toolbar=no,location=no,directories=no,scrollbars=yes,status=no,menubar=no,resizable=no,width=265,height=420")};

var popUpWin=0;
function popupglos(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=470,height=520');
}




function fieldFocus(fid,fvalue,frm)
{
if (fvalue=='Your name'||fvalue=='Your email') 
{
document[frm][fid].value='';
}
}


function fieldBlur(fid,fvalue,frm)
{
if (fvalue=='') 
{
if(fid=='fname'){document[frm].fname.value='Enter Your Name';}else{document[frm].femail.value='Enter Your Email';}

}
}


function validate(emailad,formnom) {
a = emailad.split(";")
var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
var check=/@[\w\-]+\./;
var checkend=/\.[a-zA-Z]{2,3}$/;
for(i=0;i<a.length;i++)
{
   emailadd = a[i];
   if(((emailad.search(exclude) != -1)||(emailad.search(check)) == -1)||(emailad.search(checkend)== -1)){
        alert("Please enter a valid email address!");
        return false
   }
   else {
   //alert('hello')
        document[formnom].submit();
   }
}
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;