<!--
var __popupwin=0
function popup(URL,w,h) 
{
 	var l = (screen.availWidth) ? (screen.availWidth-w)/2 : (screen.width) ? (screen.width-w)/2 : 0 ;
	var t = (screen.availHeight) ? (screen.availHeight-h)/2 : (screen.height) ? (screen.height-h)/2 : 0 ;
	settings = 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=no,resizable=no' ;
	if (w > screen.width || h > screen.height) 
	{
		w=screen.width-80 ; h=screen.height-80 ;
		settings = 'height='+h+',width='+w+',top=10,left=10,scrollbars=yes,resizable=yes' ;  
	}
	if(__popupwin&&!__popupwin.closed)__popupwin.close()
	__popupwin = window.open(URL,'popup',settings)	
}

function popscroll(URL,w,h) 
{
 	var l = (screen.availWidth) ? (screen.availWidth-w)/2 : (screen.width) ? (screen.width-w)/2 : 0 ;
	var t = (screen.availHeight) ? (screen.availHeight-h)/2 : (screen.height) ? (screen.height-h)/2 : 0 ;
	settings = 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=yes,resizable=no' ;
	if (w > screen.width || h > screen.height) 
	{
		w=screen.width-80 ; h=screen.height-80 ;
		settings = 'height='+h+',width='+w+',top=10,left=10,scrollbars=yes,resizable=yes' ;  
	}
	if(__popupwin&&!__popupwin.closed)__popupwin.close()
	__popupwin = window.open(URL,'popup',settings)	
}

if (document.images) {
	img = new MakeImgArray(5)
	img[0].src = "/roobedo/images/textblank.gif"
	img[1].src = "/roobedo/images/textclothes.gif"
	img[2].src = "/roobedo/images/textpress.gif"
	img[3].src = "/roobedo/images/textorder.gif"
	img[4].src = "/roobedo/images/textinspirations.gif"

}

function MakeImgArray(n) {
	this.length = n
	for (var i=0; i<=n; i++) {
		this[i] = new Image() ;
	}
}

function imgOn(imgRef) {
	if (document.images) {
		document["nav"].src=eval("img[" + imgRef + "].src");
	}
}

function goBack() {
	if (navigator.appName == "Netscape") {history.back();}
	if (navigator.appName == "Microsoft Internet Explorer") {top.history.back();}
}

function isemail(obj){
	retval = false
	
	if (obj.value.length != 0) {
		intFirstPos = obj.value.indexOf("@");
		if (intFirstPos != -1) {
			intSecondPos = obj.value.indexOf(".", intFirstPos + 1);
			if (intSecondPos != -1 && intSecondPos != obj.value.length - 1) {
				retval = true;
			}
		}
	}

	return retval;
}

function validateForm(obj){
// get all select elements on the page
var selectArray = obj.getElementsByTagName('select');
var errorStr = '';

for (var i = 0; i < selectArray.length; i++) {
strSelect = selectArray[i].options[selectArray[i].selectedIndex].text;
strSelect = strSelect.toLowerCase();
if (selectArray[i].selectedIndex == 0) errorStr = errorStr + selectArray[i].options[selectArray[i].selectedIndex].text + "\n";
if (strSelect.indexOf("sold out") > 0) errorStr = errorStr + "SOLD OUT\n";

//alert(selectArray[i].options[selectArray[i].selectedIndex].text);
} // for
if (errorStr != '') {
	 errorStr = 'Please make another selection.\n' + errorStr; 
	 alert (errorStr);
	 return false ;
	 }
else return true ;	 
} // end function

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
