PRICE = "0.00";
NAME = "ERROR";
ID_NUM = "- + -";
SHIPPING = "0.00";
description = null;
//-----------Product Prices------------
postcard4x6_price ="0.89";
postcard4x6Wstamp_price ="1.25";
postcard5x7_price ="1.25";
art_price8x12 ="9.99";
art_price12x18 ="16.99";
art_pricelaminatedfoamboard16x20 ="44.44";
art_price20x30 ="33.33";
art_pricemount20x30 ="59.99";
art_priceposter20x30 ="26.99";
//-----------Shipping Prices------------
shippostcard4x6_price ="0.10";
shippostcard4x6Wstamp_price ="0.10";
shippostcard5x7_price ="0.15";
shipart_price8x12 ="6.95";
shipart_price12x18 ="6.95";
shipart_pricelaminatedfoamboard16x20 ="9.95";
shipart_price20x30 ="7.95";
shipart_pricemount20x30 ="14.95";
shipart_priceposter20x30 ="8.95";

  postcard4x6 = ' - Postcard (4x6)';
  postcard4x6Wstamp = ' - Postcard (4x6) + STAMP';
  postcard5x7 = ' - Postcard (5x7)';
  art_8x12 = ' - Unmounted Print (8x12)';
  art_12x18 = ' - Unmounted Print (12x18)';
  art_laminatedfoamboard16x20 = ' - Laminated Foamboard (16x20)';
  art_20x30 = ' - Unmounted Print (20x30)';
  art_mount20x30 = ' - Mounted Foamboard (20x30)';
  art_poster20x30 = ' - Poster Print (20x30)';

newtext11 = '$' + postcard4x6_price + postcard4x6;
newtext111 = '$' + postcard4x6Wstamp_price + postcard4x6Wstamp;
newtext12 = '$' + postcard5x7_price + postcard5x7;
newtext13 = '$' + art_price8x12 + art_8x12;
newtext14 = '$' + art_price12x18 + art_12x18;
newtext15 = '$' + art_pricelaminatedfoamboard16x20 + art_laminatedfoamboard16x20;
newtext16 = '$' + art_price20x30 + art_20x30;
newtext17 = '$' + art_pricemount20x30 + art_mount20x30;
newtext18 = '$' + art_priceposter20x30 + art_poster20x30;


function writeJS(formname,funct){
var str='';
var galtype = document.galnavmenu1.gallerytype.value;
if (galtype=='novelty' || galtype=='nasa'||galtype=='occasion'){
str+=' <SELECT NAME = "s';
str+= formname;
str+='">';
str+='<OPTION VALUE = "888" selected>Please Make Your Choice Here...<\/OPTION>';
str+='<OPTION VALUE = "999"><\/OPTION>';
str+='<OPTION VALUE = "999" class="selectheader">P O S T C A R D S<\/OPTION>';
str+='<OPTION VALUE = "1" ><script type="text\/javascript"> document.write(newtext11) <\/script><\/OPTION>';
//str+='<OPTION VALUE = "2" ><script type="text\/javascript"> document.write(newtext12) <\/script><\/OPTION>';
str+='<OPTION VALUE = "999"><\/OPTION>';
str+='<OPTION VALUE = "999" class="selectheader">D I G I T A L - P R I N T S<\/OPTION>';
str+='<OPTION VALUE = "3"><script type="text\/javascript"> document.write(newtext13) <\/script><\/OPTION>';
//THe above if statement governs the novelty,nasa, and occasion galleries which possess
//different selection options.  Below are the complete options...
}
else{
str+=' <SELECT NAME = "s';
str+= formname;
str+='">';
str+='<OPTION VALUE = "888" selected>Please Make Your Choice Here...<\/OPTION>';
str+='<OPTION VALUE = "999"><\/OPTION>';
str+='<OPTION VALUE = "999" class="selectheader">P O S T C A R D S<\/OPTION>';
str+='<OPTION VALUE = "1" ><script type="text\/javascript"> document.write(newtext11) <\/script><\/OPTION>';
str+='<OPTION VALUE = "2" ><script type="text\/javascript"> document.write(newtext111) <\/script><\/OPTION>';
//str+='<OPTION VALUE = "333" ><script type="text\/javascript"> document.write(newtext12) <\/script><\/OPTION>';
str+='<OPTION VALUE = "999"><\/OPTION>';
str+='<OPTION VALUE = "999" class="selectheader">D I G I T A L - P R I N T S<\/OPTION>';
str+='<OPTION VALUE = "3"><script type="text\/javascript"> document.write(newtext13) <\/script><\/OPTION>';
str+='<OPTION VALUE = "4"><script type="text\/javascript"> document.write(newtext14) <\/script><\/OPTION>';
str+='<OPTION VALUE = "6" ><script type="text\/javascript"> document.write(newtext16) <\/script><\/OPTION>';
str+='<OPTION VALUE = "999"><\/OPTION>';
str+='<OPTION VALUE = "999" class="selectheader">M O U N T E D - P R I N T S<\/OPTION>';
str+='<OPTION VALUE = "5"><script type="text\/javascript"> document.write(newtext15) <\/script><\/OPTION>';
str+='<OPTION VALUE = "7" ><script type="text\/javascript"> document.write(newtext17) <\/script><\/OPTION>';
str+='<OPTION VALUE = "999"><\/OPTION>';
str+='<OPTION VALUE = "999" class="selectheader">P O S T E R - P R I N T S<\/OPTION>';
str+='<OPTION VALUE = "8" ><script type="text\/javascript"> document.write(newtext18) <\/script><\/OPTION>';
}
str+='<OPTION VALUE = "999"><\/OPTION>';
str+='<\/SELECT>';
document.write(str);

}



function dropdown(moon){   //Dropdown Order Menu Function...
//alert(order1.s2.selectedIndex);
//alert(order1.s2.value);
//alert('dropdown-moon');
//alert(moon);
switch(moon){
case 1:
//alert('mooncase1');
q = document.picture1.s1.value;
//alert(q);
break
case 2:
//alert('mooncase2');
q = document.picture2.s2.value;
break
case 3:
q = document.picture3.s3.value;
break
case 4:
q = document.picture4.s4.value;
break
case 5:
q = document.picture5.s5.value;
break
case 6:
q = document.picture6.s6.value;
break
case 98:
q = '98';
break
case 99:
q = '99';
break
default:
alert('An error has occured...');
}
//alert('q');
//alert(q);

 switch(q){
case '1':
  //alert('Hello1');
  PRICE = postcard4x6_price;
  
SHIPPING = shippostcard4x6_price;
description = postcard4x6;
break
  
case '2':
//  alert('Hello2')
//  PRICE = postcard5x7_price;
//SHIPPING = shippostcard5x7_price;
//description = postcard5x7;
PRICE = postcard4x6Wstamp_price;


SHIPPING = shippostcard4x6Wstamp_price;
description = postcard4x6Wstamp;
  break  
    
case '3':
//  alert('Hello3')
  PRICE = art_price8x12;


SHIPPING = shipart_price8x12;
description = art_8x12;

  break
  
  case '4':
  //alert('Hello4')
  PRICE = art_price12x18;


SHIPPING = shipart_price12x18;
description = art_12x18;
  break
  
  case '5':
//  alert('Hello5')
  PRICE = art_pricelaminatedfoamboard16x20;


SHIPPING = shipart_pricelaminatedfoamboard16x20;
description = art_laminatedfoamboard16x20;
  break
  
  case '6':
  //alert('Hello6')
  PRICE = art_price20x30;


SHIPPING = shipart_price20x30;
description = art_20x30;
  break
  
  case '7':
//  alert('Hello7')
  PRICE = art_pricemount20x30;


SHIPPING = shipart_pricemount20x30;
description = art_mount20x30;
  break
  
  case '8':
//  alert('Hello8')
  PRICE = art_priceposter20x30;


SHIPPING = shipart_priceposter20x30;
description = art_poster20x30;
  break
  
      case '98':
//  alert('Hello8')
  PRICE = "2.05";
NAME = 'Five 41¢ Stamps'

SHIPPING = "0.00";
description = '(5x7 Postcard)';
  break
    case '99':
//  alert('Hello8')
  PRICE = "1.30";
NAME = 'Five 26¢ Stamps'

SHIPPING = "0.00";
description = '(4x6 Postcard)';
  break
default:
PRICE = null;
NAME = null;
ID_NUM = null;
SHIPPING = null;
 // alert('No item selected!');
}
}



////////////THE following function controls the PAGE NUMBERS at the BOTTOM

function gallerynavigation(){
galtype = document.galnavmenu1.gallerytype.value;
switch(galtype){
case 'art':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'merchandise':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'postcards':
var pages = 7;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'nasa':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'novelty':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'occasion':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'ForeverYoung':
var pages = 2;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'moorder':
var pages = 2;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'nature':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'artcorner':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 'favorites':
var pages = 1;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
selectornot = document.galnavmenu.selecthis.value;
break
case 7:

break
default:
alert('An error has occured!');
}
////*  The proceeding function controls the gallery button navigation at the bottom of the screen

//var pages = 5;/* PLEASE INSERT NUMBER OF GALLERY PAGES HERE@@@@*/
var foo ='<td><input type="radio" class="radio" value=""onClick="location.href = \'gallery'; /*Please type gallery webpage names here*/
var foo2 ='.htm##\'">';
var foo3 ='.htm##\'" checked>';
//selectornot = document.galnavmenu.selecthis.value;
var tr='<tr align="center">';
var td ='<td>';
var tdd ='<td class="galnavselect">';

var strr='';


for (var x = 1; x <= pages; x++)
   {
   if (selectornot == x) 
{
strr+= foo + x + foo3; //+ "\n";  //if the webpage gallery # equals x, then this page is selected.
}
else
{
strr+= foo + x + foo2; //+ "\n";
}


   }
   strr+= tr;   

   for (var x = 1; x <= pages; x++)
   {
  if (selectornot == x) //if the webpage gallery # equals x, then this page is selected.
{
strr+= tdd + x;
}
else
{
strr+= td + x;
}
   }
//alert(strr);
//alert(galnavmenu.selecthis.value);
document.write(strr);

}
function gallery(){   /////////////////////This Section CONTROLS TOP Radio Buttons Menu
galtype1 = document.galnavmenu1.gallerytype.value;
var gall=new Array()
gall[1]="Digital Abstract Art";
gall[2]="Merchandise";
gall[3]="Exploration (NASA)";
gall[4]="Novelty Gallery";
gall[5]="moordeR Gallery";
gall[6]="Forever Young";
gall[7]="Nature";
gall[8]="Favorites";
gall[9]="Art Corner";

var location=new Array()
location[1]="http://www.MRSIII.com/gallery/postcards/";
location[2]="http://www.MRSIII.com/gallery/merchandise/";
location[3]="http://www.MRSIII.com/gallery/postcards/nasa/";
location[4]="http://www.MRSIII.com/gallery/postcards/novelty/";
location[5]="http://www.MRSIII.com/gallery/moorder/";
location[6]="http://www.MRSIII.com/gallery/ForeverYoung/";
location[7]="http://www.MRSIII.com/gallery/postcards/nature/";
location[8]="http://www.MRSIII.com/gallery/postcards/favorites/";
location[9]="http://www.MRSIII.com/gallery/postcards/artcorner/";


var galls= 9;/*CHANGE  WHENEVER ABOVE CHANGES*/

switch(galtype1){
case 'none':
gallselectornot = 0;
break
case 'art':
gallselectornot = 1;
break
case 'merchandise':
gallselectornot = 2;
break
case 'postcards':
gallselectornot = 1;/*used to be 5*/
break
case 'nasa':
gallselectornot = 3;
break
case 'novelty':
gallselectornot = 4;
break
case 'occasion':
break
case 'moorder':
gallselectornot = 5;
break
case 'ForeverYoung':
gallselectornot = 6;
break
case 'newgallery':
gallselectornot = 6;
break
case 'nature':
gallselectornot = 7;
break
case 'favorites':
gallselectornot = 8;
break
case 'artcorner':
gallselectornot = 9;
break
default:
alert('An error has occured');
}

var sstrr='';
 
var fooo ='<input type="radio" class="radio"  value="" title="'
var fooo1 ='"onClick="location.href = \'' /*Please type gallery webpage names here*/
var fooo2 ='gallery1.htm\'">';
var fooo3 ='gallery1.htm\'" checked>';


for (var x = 1; x <= galls; x++)
   {
   if (gallselectornot == x) //if the webpage gallery # equals x, then this page is selected.
{
sstrr+= fooo + gall[x] + fooo1 + location[x] + fooo3; //+ "\n";
}
else
{
sstrr+= fooo + gall[x] + fooo1 + location[x] + fooo2; //+ "\n";
}


   }
   document.write(sstrr);
} 


/*-_-_-_-_-_-_-_-_-_-_-_*/

