// JavaScript Document

function display(obj,id1,id2,id3,id4,id5,id6) {
txt = obj.options[obj.selectedIndex].value;

document.getElementById(id1).style.display = 'none';
document.getElementById(id2).style.display = 'none';
document.getElementById(id3).style.display = 'none';
document.getElementById(id4).style.display = 'none';
document.getElementById(id5).style.display = 'none';
document.getElementById(id6).style.display = 'none';

//The number stands for the Monogram Style Selection id number
if (txt >= 1141 && txt <= 1150) {
document.getElementById(id1).style.display = 'block';
//First Name Lettering
}
if (txt == 1240 || txt == 1236 || txt == 1154 || txt == 1272 || txt == 1244 || txt == 1278 || txt == 1539 || txt == 1540) {
document.getElementById(id2).style.display = 'block';
//Initial Monogram
}
if (txt >= 1261 && txt <= 1264 || txt == 1159 || txt == 1237 || txt == 1241 || txt == 1245 || txt == 1271 || txt == 1279 || txt == 1538) {
document.getElementById(id3).style.display = 'block';
//Two Initial
}
if (txt == 1234 || txt == 1238 || txt == 1242 || txt == 1246 || txt == 1247 || txt == 1248 || txt == 1265 || txt >= 1266 && txt <= 1269 || txt == 1273 || txt == 1280 || txt == 1298) {
document.getElementById(id4).style.display = 'block';
//Single Monogram
}
if (txt == 1235 || txt == 1239) {
document.getElementById(id5).style.display = 'block';
//Stacked
}
if (txt >= 1151 && txt <= 1153 || txt >= 1155 && txt <= 1158 || txt == 1160 || txt == 1270 || txt == 1277 || txt == 1537 || txt == 1541) {
document.getElementById(id6).style.display = 'block';
//Standard
}
}

function displaypillow(obj,id1,id2,id3,id4,id5) {
txt = obj.options[obj.selectedIndex].value;

document.getElementById(id1).style.display = 'none';
document.getElementById(id2).style.display = 'none';
document.getElementById(id3).style.display = 'none';
document.getElementById(id4).style.display = 'none';
document.getElementById(id5).style.display = 'none';


//The number stands for the Baby Pillow Personalization id number
if (txt == 1547) {

document.getElementById(id1).style.display = 'block';
//Baby Name Only
}
if (txt == 1548) {

document.getElementById(id1).style.display = 'block';
document.getElementById(id2).style.display = 'block';
//Baby Name and Date
}
if (txt == 1549) {

document.getElementById(id1).style.display = 'block';
document.getElementById(id2).style.display = 'block';
document.getElementById(id3).style.display = 'block';
//Baby Name, Date, and Weight
}
if (txt == 1550) {

document.getElementById(id1).style.display = 'block';
document.getElementById(id2).style.display = 'block';
document.getElementById(id3).style.display = 'block';
document.getElementById(id4).style.display = 'block';
//Baby Name, Date,Weight and Length
}
if (txt == 1567) {
document.getElementById(id5).style.display = 'block';
//Standard Monogram Only
}
}


 function menu_msover(obj)
  {
    var menu_name = "m_"+obj.id.substr(3);
    var menu_obj = document.getElementById(menu_name);
    if (!menu_obj)  return;
    menu_obj.style.visibility = "visible";
  }

  function menu_msout(obj)
  {
    var menu_name = "m_"+obj.id.substr(3);
    var menu_obj = document.getElementById(menu_name);
    if (!menu_obj)  return;
    menu_obj.style.visibility = "hidden";
  }
  
  
  function popUp(sImgPath, iImgW, iImgH) {
		var sHeader = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<html>\n<head>\n<title>Larger Image</title>\n</head>\n<body>\n\n";
		var sFooter = "</body>\n</html>";
		var oWin = window.open("about:blank", null, "width=" + (iImgW+20) + ",height=" + (iImgH+75) + ",left=50,top=50,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
		oWin.document.open();
		oWin.document.write(sHeader);
		oWin.document.write("<div align=center><IMG SRC=\"" + sImgPath + "\" width=" + iImgW + " height=" + iImgH + ">\n");
		oWin.document.write("<P>");
		oWin.document.write("<a href=\"javascript:window.close();\" style=\"font-size:8pt;font-weight:normal;font-family:arial;color:blue\">close this window</a></div>");
		oWin.document.write(sFooter);
		oWin.document.close();
	}
