var windowHandle = null;
var globalImage = null;
var globalImageWidth = null;
var globalImageHeight = null;
var globalCaption = null;
function myOpen(localImage,localCaption,imageWidth,imageHeight,windowWidth,windowHeight,xPos,yPos) {
    globalImage = localImage;
    globalCaption = localCaption;
    globalImageWidth = imageWidth;
    globalImageHeight = imageHeight;
    windowHandle = window.open('swatchpopup.html','windowName','width=' + windowWidth + ',height=' + windowHeight + ',left=' + xPos + ',top=' + yPos + 'screenX=' + xPos + ',screenY=' + yPos);
    if (!windowHandle.opener)
        windowHandle.opener = self;
}

function myOpen2(localImage,windowName,windowWidth,windowHeight,xPos,yPos) {
    globalImage = localImage;
    windowHandle = window.open('productpopup.html','windowName','width=' + windowWidth + ',height=' + windowHeight + ',left=' + xPos + ',top=' + yPos + 'screenX=' + xPos + ',screenY=' + yPos);
    if (!windowHandle.opener)
        windowHandle.opener = self;
}

var message="";
///////////////////////////////////


function clearDefaultandCSS(el) {
	if (el.defaultValue==el.value) el.value = ""
	// If Dynamic Style is supported, clear the style
	if (el.style) el.style.cssText = ""
}

function jumpto(x){
if (document.form1.jumpmenu.value != "null") {
	document.location.href = x
	}
}


function textEmbPopupScrubs()
     { mapWindow = window.open ('http://www.allheart.com/lib/allheart/embroiderypopup.html#scrubs','AllHeartEmbroiderySamples','width=440,height=500,top=10,left=180,scrollbars=yes,menubar=no')
     }

function textEmbPopupUlabs()
     { mapWindow = window.open ('http://www.allheart.com/lib/allheart/embroiderypopup.html#unisexlabcoats','AllHeartEmbroiderySamples','width=440,height=500,top=10,left=180,scrollbars=yes,menubar=no')
     }

function textEmbPopupWlabs()
     { mapWindow = window.open ('http://www.allheart.com/lib/allheart/embroiderypopup.html#womenslabcoats','AllHeartEmbroiderySamples','width=440,height=500,top=10,left=180,scrollbars=yes,menubar=no')
     }

function textEmbPopupMlabs()
     { mapWindow = window.open ('http://www.allheart.com/lib/allheart/embroiderypopup.html#menslabcoats','AllHeartEmbroiderySamples','width=440,height=500,top=10,left=180,scrollbars=yes,menubar=no')
     }

function emblemEmbPopup()
     { mapWindow = window.open ('http://www.allheart.com/lib/allheart/embmedemblempopup.html','AllHeartEmbroiderySamples','width=600,height=500,top=10,left=80,scrollbars=yes,menubar=no')
     }
