
// handles rollovers for sidebar graphics
//
function Roll(id, roll) {
	with(document.images) {
		eval(id + ".src='/Images/" + roll + ".gif';");
	}
}

// validation for document order form
//
function Is_Valid_Email() {
	if (document.emailDoc.email.value == "" || 
		document.emailDoc.name.value == "" || 
		document.emailDoc.org.value == "") {
		msg1 = "To receive this document you must ";
		msg2 = "supply your name, organisation and email address.";
		window.alert(msg1 + msg2);
		return false;
	} else {
		return true;
	}
}


// image preloader
// 
function Load_Images(){
	for (var i = 0 ; i < Load_Images.arguments.length ; i++){
		imgs[i] = new Image();
		imgs[i].src = Load_Images.arguments[i];
	}
}

// Opens a new window for displaying Screenshots, PDFs etc
//
function Open_Window(url) {
	window.open(url);
}