function def(l, c) {
	document.mixmaster.layouturl.value = l;
	document.mixmaster.contenturl.value = c;
	dosubmit();
}

function formValidation(form)	{
				if(notEmpty(form.Photo))	{
								return true;
							}
				return false;
				}
function notEmpty(elem)	{
				var str = elem.value;
				if(str.length == 0){
							alert("You must select a file 1st!");
							return false;
						} else {

							document.mixmaster.submitbutton.value = "wait..";
							if (document.all || document.getElementById) {
								document.mixmaster.submitbutton.disabled = true;
							}
							else {
								document.mixmaster.submitbutton.onclick = null;
							}
							document.mixmaster.submit();
							return true;
						}
			}

