﻿// KMG Software, Inc.

function eraseBox()
{
	document.Form1.ctl00$Header1$txtUsername.value = "";
}

function avpop(dest)
{
  dest = dest.replace('islanddefjam.com','rocafella.com').replace('islandrecords.com','rocafella.com');
	window.open(dest,'idjAV','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=720,height=540');
}
function OpenNewWindow(url,winwidth,winheight)
{
	window.open(url,'RocWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+winwidth+',height='+winheight)
}
		
	function showGallery(key, start) {
	OpenNewWindow('artistphotos.aspx?key='+key+'&startNum='+start,'740','580')
	}

    function KeyDownHandler(btn)
    {
       // process only the Enter key
           if (event.keyCode == 13)
           {
            // cancel the default submit
            event.returnValue    =    false;
            event.cancel        =    true;
 
        var obj = document.getElementById(btn);
        obj.click();
             }
    }
    
function writeExCtrl(id){

 if(document.getElementById && document.getElementById(id) &&

document.getElementById(id).innerHTML){

 document.write(document.getElementById(id).innerHTML.replace(/&gt;/gi,

'>').replace(/&lt;/gi, '<'));

 }

}
function imgRollOver(name,over)
{
	if(window.document.images) 
	{
		if (over) {
			window.document.images[name].src = "images/" + name + "_roll.gif";
		}
		else {
			window.document.images[name].src =  "images/" + name + ".gif";
		}
	}
}