function displayThemeTeaser(selObj,restore){
if (restore) selObj.selectedIndex=0;
elem2 = document.getElementById("teaserTributeTheme");
elem2.src = "themes/teaser/"+ selObj.options[selObj.selectedIndex].value+ ".jpg";
$('#teaserTributeTheme').fadeIn('slow');
teas =selObj.options[selObj.selectedIndex].value;
elem3 = document.getElementById("tributeThemeExample");
elem3.href = "javascript:popupThemeTeaser('"+ teas +"');";
}
function popupThemeTeaser(teaser){
window.open('../tributes/themes/example/example.php?title='+teaser,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=550,left=250,top=150');
}
function changeTheme(selObj,restore){
if (restore) selObj.selectedIndex=0;
elem4 = document.getElementById("tributeDiv");
elem4.className = "th_"+ selObj.options[selObj.selectedIndex].value;
$('#tributeDiv').fadeIn('slow');
}
function removeSampleCopy(inputid){
$('#' + inputid).removeClass("greySampleCopy");
//$('#' + inputid).empty();
}
function deleteTempImage(photoToRemove){
$('#' + photoToRemove).find("div").empty();
$('#' + photoToRemove).find("div").removeClass("modifyingInfo");
}
function validateFileName(input_id,format_type){
var file_name = $('#' + input_id).val();
if(file_name != ""){
var file_length = file_name.length;
file_name = file_name.toUpperCase();
//format_type = format_type.toUpperCase();
if(file_name.substr(file_length-3).toLowerCase()=='jpg' || file_name.substr(file_length-4).toLowerCase()=='jpeg' || file_name.substr(file_length-3).toLowerCase()=='gif')
$('#' + input_id).removeClass("fileupload");
else {
alert("Not a valid image source - please choose a picture in .JPG or .GIF format.");
$('#' + input_id).val(""); //doesn't work in IE
//document.forms['createTributeForm'].input_id.value = "";
$('#' + input_id).addClass("fileupload");
}
}
}
function displayPicture(imageurl, imageheight){
$('#largeImage').attr({ src: imageurl});
$('#largeImage').attr({ display: "block"});
document.images.largeImage.height=imageheight;
}
function creatingTributeImages(){
$('#approvalform').after("