////////////////////////////////////////////////////////////////////////////
// db Masters' Directory 3.6.1, Copyright (c) 2003 dB Masters Multimedia
// Content Manager comes with ABSOLUTELY NO WARRANTY
// Licensed under the AGPL
// See license.txt and readme.txt for details
////////////////////////////////////////////////////////////////////////////
function validate_cat()
{
	if(document.getElementById('form').name.value==""){alert("Please enter a name for this category.");return false;}		
	else if(document.getElementById('form').dsc.value==""){alert("Please enter a short description of this category.");return false;}
}
function validate_link()
{
	if(document.getElementById('form').name.value==""){alert("Please enter a name for your website.");return false;}
	else if(document.getElementById('form').dsc.value==""){alert("Please enter a short description of your website.");return false;}
}
function validate_add()
{
	if(document.getElementById('form').name.value==""){alert("Please enter a name for your website.");return false;}
	else if(document.getElementById('form').dsc.value==""){alert("Please enter a short description of your website.");return false;}
}
function validate_edit()
{
	if(document.getElementById('form').name.value==""){alert("Please enter a name for your website.");return false;}
	else if(document.getElementById('form').dsc.value==""){alert("Please enter a short description of your website.");return false;}
	else if(document.getElementById('form').url.value==""){alert("Please enter the URL of your website.");return false;}
}
function validate_login()
{
	if(document.getElementById('form').url.value==""){alert("Please enter the URL of the website you wish to edit.");return false;}
	else if(document.getElementById('form').email.value==""){alert("Please enter the email address you registered the website with.");return false;}
	else if(document.getElementById('form').password.value==""){alert("Please enter the password you registered the website with.");return false;}
}
function validate_admin()
{
	if(document.getElementById('form').pw.value==""){alert("Please enter a password.");return false;}
}
function validate_remind()
{
	if(document.getElementById('form').email.value==""){alert("Please enter your email address.");return false;}
}
function blocking(nr)
{
	if (document.getElementById)
	{
		current=(document.getElementById(nr).style.display=='none')?'block':'none';
		document.getElementById(nr).style.display=current;
	}
}

//index Flash movie
function indexPaste()
{
    document.write('<object type="application/x-shockwave-flash" data="images/main_index.swf" width="590" height="90">\n');
    document.write('<param name="movie" value="main_index.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}


//3 main gallery inserts
function insertCreatorsGallery()
{
    document.write('<object type="application/x-shockwave-flash" data="creators_gallery.swf" width="533" height="225">\n');
    document.write('<param name="movie" value="creators_gallery.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertFeaturedArtist()
{
    document.write('<object type="application/x-shockwave-flash" data="featured_artist.swf" width="533" height="225">\n');
    document.write('<param name="movie" value="featured_artist.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertRotatingExhibit()
{
    document.write('<object type="application/x-shockwave-flash" data="rotating_exhibit.swf" width="533" height="225">\n');
    document.write('<param name="movie" value="rotating_exhibit.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

//genome gallery Flash inserts
function insertGenome1Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome1.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome1.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome2Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome2.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome2.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome3Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome3.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome3.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome4Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome4.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome4.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome5Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome5.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome5.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome6Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome6.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome6.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome7Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome7.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome7.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome8Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome8.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome8.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertGenome9Description()
{
    document.write('<object type="application/x-shockwave-flash" data="genome9.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="genome9.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}


//underscored gallery Flash inserts
function insertUnderscored1Description()
{
    document.write('<object type="application/x-shockwave-flash" data="underscored1.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="underscored1.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertUnderscored2Description()
{
    document.write('<object type="application/x-shockwave-flash" data="underscored2.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="underscored2.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertUnderscored3Description()
{
    document.write('<object type="application/x-shockwave-flash" data="underscored3.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="underscored3.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertUnderscored4Description()
{
    document.write('<object type="application/x-shockwave-flash" data="underscored4.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="underscored4.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}


//progressions gallery Flash inserts
function insertProgressions1Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions1.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions1.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertProgressions2Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions2.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions2.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertProgressions3Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions3.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions3.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertProgressions4Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions4.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions4.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertProgressions5Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions5.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions5.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertProgressions6Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions6.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions6.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertProgressions7Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions7.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions7.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}

function insertProgressions8Description()
{
    document.write('<object type="application/x-shockwave-flash" data="progressions8.swf" width="550" height="400">\n');
    document.write('<param name="movie" value="progressions8.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('</object>\n');
}