function clearDefaultandCSS(el) {
  if (el.defaultValue==el.value) el.value = ""
}
    
function toggle(div) {
 var elem = document.getElementById(div);
 if (elem.style.visibility=='') {elem.style.visibility='hidden'; return;}
 elem.style.visibility='';
}
    
function showPopup(link_site, titel, breedte, hoogte) {
  sList = window.open(link_site, titel, "width="+breedte+",height="+hoogte+"");
}
    
function DoNav(theUrl) {
  document.location.href = theUrl;
}
    
function confirmIt(delUrl, it_text) {
  if (confirm(it_text)) {
    document.location = delUrl;
  }
}

function showPop(URL) {
  venster = window.open(URL, 'popupvenster', 'width=320, height=350, resizable=no, menubar=no, scrollbars=no, status=no, toolbar=no');
}

function writePhpTACookie() {
	date=new Date;
	date.setMonth(date.getMonth()+1);
	var name = "phpTA_resolution";
	var value = screen.width +"x"+ screen.height;
	var domain = "lovinglyrics.com";
	var path= "/";
	document.cookie=name+"="+escape(value)+"; expires="+date.toGMTString()+"; path="+path+"; domain="+domain;
}
window.onload=writePhpTACookie();

function WrapOff(textid) {
  var txtarea = document.getElementById(textid);
  wrap = txtarea.getAttribute('wrap');
  txtarea.setAttribute('wrap', 'off');
  txtarea.setAttribute('id', textid);
  var parNod = txtarea.parentNode, nxtSib = txtarea.nextSibling;
  parNod.removeChild(txtarea); parNod.insertBefore(txtarea, nxtSib);
}