﻿/*
 * showFlash(url)
 */
function showFlash(url, width, height) {
	document.write
	('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" '+
		'WIDTH='+width+' HEIGHT='+height+' VIEWASTEXT> <PARAM NAME=movie VALUE="'+url+'"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=bgcolor VALUE=#FFFFFF> '+
		'<EMBED src="'+url+'" menu=false quality=best bgcolor=#FFFFFF  WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> </OBJECT>');
}


/*
 * validates the productronica form 
 */
function valid_productronica() {
if (document.getElementById('fname').value==document.getElementById('fname').defaultValue ||
    document.getElementById('fname').value.indexOf(' ',0)==0)
    {
        alert('\nPlease fill in your first name')
        document.getElementById('fname').select()
        document.getElementById('fname').focus()
        return false
    }
	if (document.getElementById('lname').value==document.getElementById('lname').defaultValue ||
    document.getElementById('lname').value.indexOf(' ',0)==0)
    {
        alert('\nPlease fill in your last name')
        document.getElementById('lname').select()
        document.getElementById('lname').focus()
        return false
    }
	
	if (document.getElementById('country').selectedIndex==0)
    {
        alert('\nPlease fill in your country')
        document.getElementById('country').focus();
       return false
    }
	
	if (document.getElementById('email').value==document.getElementById('email').defaultValue ||
    document.getElementById('email').value.indexOf(' ',0)==0)
    {
        alert('\nPlease fill in your e-mail')
        document.getElementById('email').select()
        document.getElementById('email').focus()
        return false
    }
	
	if (document.getElementById('email').value.indexOf('@',0)==-1 ||
        document.getElementById('email').value.indexOf('.',0)==-1)
       {
            alert('\nPlease fill in a valid email address')
            document.getElementById('email').select()
            document.getElementById('email').focus()
           return false
       }
}