function filter_artistes() {
//alert(document.artiste_filter.filter_select.options[document.artiste_filter.filter_select.selectedIndex].value);
location.href='/artistes/?gender='+document.artiste_filter.filter_select.options[document.artiste_filter.filter_select.selectedIndex].value;
}

function myWindow(openWindow,details) {

    if (openWindow) {
	url = '../admin/selectartiste/?id='+details;
	
        windowHandle = window.open(url,'windowName','width=200,height=150');
        if (!windowHandle.opener)
            windowHandle.opener = self;
    }
    else
        windowHandle.close();
}



function reapply(){
setTimeout("slideit()",2000)
return true
}
window.onerror=reapply
function myWindow(openWindow,details) {

    if (openWindow) {
	url = '../admin/selectartiste/?id='+details;
	
        windowHandle = window.open(url,'windowName','width=200,height=100');
        if (!windowHandle.opener)
            windowHandle.opener = self;
    }
    else
        windowHandle.close();
}

function checkForm(){
	// checks all the input parameters are valid.
		var errors = 0;
		// checks that password matches the confirmation
		

		/* check the first name is entered
		if(document.userform.email.value.length == 0){
			alert('You must enter your email address');
			errors++;		
		}
		*/
		if(document.userform.name.value.length == 0){
			alert('You must enter your name');
			errors++;		
		}
			if(document.userform.rname.value.length == 0){
			alert('You must enter your Recipients name');
			errors++;		
		}
			if(document.userform.remail.value.length == 0){
			alert('You must enter your Recipients email address');
			errors++;		
		}
		
		if(errors > 0)
				return false;
		else
			return true;
			//onSubmit = "return checkForm();" 
	}
