function submitChooseArtistForm(){
		//alert('here');
	var artist_id =document.getElementById('artist_id').value;	
	window.location.href='../login/admin.php?artist_id='+artist_id;
}
function submitChooseGalleryForm(){
		//alert('here');
	var gallery_id =document.getElementById('gallery_id').value;	
	gotoPage('gallery.php?gallery_id='+gallery_id);
}

function forceFrame(){
   if (top.location == self.location ) {
	   //alert(location.pathname+"/"+location.search);
	   //top.location.href = "index.html?" + location.href; //full path
	  	var file_name = document.location.href;	
		var end = (file_name.indexOf("?") == -1) ? file_name.length : file_name.indexOf("?");
		var file = file_name.substring(file_name.lastIndexOf("/")+1, end);
		
		top.location.href = "index.html?" + file+""+location.search;
    }	
}

function showAndHide(theId){ 
	var el = document.getElementById(theId) 
	if (el.style.display=="none") { 
		el.style.display="block"; //show element 
	} 
	else { 
		el.style.display="none"; //hide element 
	} 
} 

function gotoPage(strURL, trackitPage){
	var ajaxRequest;  // The variable that makes Ajax possible!	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			//document.myForm.time.value = ajaxRequest.responseText;
			document.getElementById("contentArea").innerHTML = ajaxRequest.responseText;
			/*Video Fix */
			/*if(strURL == "video.php"){
				vxMain();
			}*/
			initLightbox();
			myLightbox.updateImageList();
			
			Trackit2("UKI", "GB", "emi cat marketing", "emi catalogue", "glen campbell", trackitPage); 
		}
	}
	ajaxRequest.open("GET", strURL, true);
	ajaxRequest.send(null);
}

function popUp(strURL){
	newwindow=window.open(strURL,'name',"menubar=no,width=668,height=608,toolbar=no,resizable=no");
	if (window.focus) {newwindow.focus()}
}
function privacy(){
	newwindow=window.open('http://www.umusic.co.uk/privacy.html','name',"menubar=no,width=560,height=608,toolbar=no,resizable=no,scrollbars=yes");
	if (window.focus) {newwindow.focus()}
}
