/*

function dl(el){
        el.innerHTML = "";
        
}
*/

function email(user,domain,subject) {
        locationstring = "mailto:" + user + "@" + domain+"?subject="+subject;
        window.location = locationstring;
}
/*
window.onload=function mobile() {
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
	{
	  location.replace("http://www.nocturne-records.org/wordpress");
	}
}*/

function viewImage(f,w,h,id) {
        src = '/viewers/image.php?f='+f+'&w='+w+'&h='+h+'&id='+id;
        openWindow(src, w, h, false);
}
function openWindow(src, width, height, scroll) {
        window.open(src, 'picture', "width=" + width + ",height=" + height + ",left=" + Math.round((screen.width - width) / 2) + ",top=" + Math.round((screen.height - height) / 2 - 40) + ",scrollbars=" + (scroll ? 1 : 0) + ",resizable=0,status=0").focus();
}




function playAudio(id,trkid){
        location = "http://www.soundsoftheuniverse.com/audio/files/"+id+"/"+trkid+".m3u";
}


function toWishlist(id,f,s,r){
        location = "http://www.soundsoftheuniverse.com/php/addtowishlist.php?id="+id+"&f="+f+"&s="+s+"&r="+r;
}

function removeWL(id,s,r){
        location = "http://www.soundsoftheuniverse.com/php/removefromwl.php?id="+id+"&s="+s+"&r="+r;
}

function remindMe(id,f,s,r){
        location = "http://www.soundsoftheuniverse.com/php/addtoreminders.php?id="+id+"&f="+f+"&s="+s+"&r="+r;
}

function removeReminder(id,s,r){
        location = "http://www.soundsoftheuniverse.com/php/removefromreminders.php?id="+id+"&s="+s+"&r="+r;
}


function submitSearchForm(){
                document.searchform.submit();
}

function changeStore(){
        document.locationform.submit();
}        
        
function emailCheck(email){  
          var reg =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 
    if (reg.test(email)) {   
    document.getElementById("check").innerHTML = "<img src='img/check.png'>"
   }else{  
    document.getElementById("check").innerHTML = "<img src='img/x.png'>"
   }  
 }  
 
