function NewWindow(mypage, myname, w, h, scroll) {
        var winl = (screen.width - w) / 2;
        var wint = (screen.height - h) / 2;
        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
        win = window.open(mypage, myname, winprops)
        if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}



function downWindow(mypage, myname, w, h, scroll) {
        var winl = (screen.width - w) / 2;
        var wint = (screen.height - h) / 2;
        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
        win = window.open(mypage, myname, winprops)
        if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function check_char() {
  var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?";
  for (var i = 0; i < document.formname.fieldname.value.length; i++) {
  	if (iChars.indexOf(document.formname.fieldname.value.charAt(i)) != -1) {
  	alert ("Your username has special characters. \nThese are not allowed.\n Please remove them and try again.");
  	return false;
  	}
  }
}


function ok2download( $action ) {
	if ( $action == true ) {
		return true;
	} else {
	    alert("Please log in or register for your FREE My AudioGig account to download the mp3 file.");
		return false;
	}
}


function checkvalue( form,amt ) {
	alert("test");

}

function menuhome() {
   document.images.myImage.src="/img/home_ovr.gif";
   }

function menuhomeback () {
   document.images.myImage.src="/img/home.gif";
 }

function enlargeImageProfile ( winSrc, x, y )
{

	
	winWidth = 500;
	winHeight = 680;
	var winLeft = (screen.width-winWidth)/2;
	var winTop = (screen.height-winHeight)/2;
	var xx = ( x * 1 ) +50;
	var yy = ( y * 1 ) +50;		
	wname=window.open(winSrc,"messages","location=0,resizable=1,status=0,scrollbars=1,width="+xx+",height="+yy+"\"");
		// wname=window.open(winSrc,"messages","menubar=0,toolbar=0,location=0,resizable=1,status=1,scrollbars=1,width=500,height=600");		
}	


function openWindow(theURL,winName,features) {  
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
}
