// JavaScript Document
<!--

function popitup(url) {
	newwindow=window.open(url,'name','height=300,width=300');
	if (window.focus) {newwindow.focus()}
	return false;
}

function popituplg(url) {
	newwindow=window.open(url,'name','height=500,width=500');
	if (window.focus) {newwindow.focus()}
	return false;
}

function popitupwide(url) {
	newwindow=window.open(url,'name','height=400,width=750');
	if (window.focus) {newwindow.focus()}
	return false;
}


function verify(form) {
    var valid = 0;
    var ret = true;
    var ret2 = true;
    var ss1 = 'select_size[]';
        
    if (form[ss1] instanceof NodeList) {
    	for (i=0; form[ss].length > i; i++) {
    		valid += form[ss1][i].value.length;
    	}
    } else {
    	///
    	valid = form[ss1].value.length;
    }
    if (valid > 0) {
       ret = true;
    } else {
        alert('Please select a size.');
        ret = false;
    }
    
    return (ret);
 
    
}

function verifycolor(form) {
    var valid = 0;
    var ret = true;
    var ret2 = true;
    var ss1 = 'solid_id';
	var ss2 = 'select_size[]';
        
    if (form[ss1] instanceof NodeList) {
    	for (i=0; form[ss].length > i; i++) {
    		valid += form[ss1][i].value.length;
    	}
    } else {
    	///
    	valid = form[ss1].value.length;
    }
    if (valid > 0) {
			if (form[ss2] instanceof NodeList) {
    		for (i=0; form[ss].length > i; i++) {
    		valid += form[ss2][i].value.length;
    		}
    		} else {
    			///
    			valid = form[ss2].value.length;
    			}
    			if (valid > 0) {
      			 ret = true;
    			} else {
        		alert('Please select a size.');
       			 ret = false;
    		}
   
    } else {
        alert('Please select a color.');
        ret = false;
    }
    
    return (ret);
    
}


function adjustLayout()
{

  // Get natural heights
  var lHeight = xHeight("sidebar");
  var rHeight = xHeight("content");

  // Find the maximum height
  var maxHeight = Math.max(lHeight, rHeight);

  // Assign maximum height to all columns
  
  xHeight("sidebar", maxHeight);
  xHeight("content", maxHeight);
  
  // Show the footer
  xShow("footer");

  
}

window.onload = function()
{
  xAddEventListener(window, "resize",
    adjustLayout, false);
  adjustLayout();
}


// -->
