function setSkinSize(product)
{
$('Skinform').setAttribute('action','http://order.store.yahoo.net/cgi-bin/wg-order?demotivators+'+product);
}
function setSkinSize2(product)
{
$('Skin2form').setAttribute('action','http://order.store.yahoo.net/cgi-bin/wg-order?demotivators+'+product);
}

function checkData2(skin)
{
$('Skin2form').setAttribute('action','http://order.store.yahoo.net/cgi-bin/wg-order?demotivators+'+$('skin_size2').value);

	errorCount = 0;
	errorText = '';
	
		if ($(skin).value === '') {
			errorCount++;
			errorText = errorText + "Please choose a design for your laptop skin.\n";
		}
		if ($('skin_size2').value === '') {
			errorCount++;
			errorText = errorText + "Please choose a size for you laptop skin.\n";
		}


	
	errorText = errorText + "------------------------------------------------------\n";
		errorText = errorText + "Please correct these issues to continue, \n";
		errorText = errorText + "or call us at 1-877-DESPAIR\n";
	
	if (errorCount > 0) {
		alert(errorText);
		} else {$(skin+'2form').submit();}

}

function checkData(skin)
{
$('Skinform').setAttribute('action','http://order.store.yahoo.net/cgi-bin/wg-order?demotivators+'+$('skin_size').value);

	errorCount = 0;
	errorText = '';
	
		if ($(skin).value === '') {
			errorCount++;
			errorText = errorText + "Please choose a design for your laptop skin.\n";
		}
		if ($('skin_size').value === '') {
			errorCount++;
			errorText = errorText + "Please choose a size for you laptop skin.\n";
		}


	
	errorText = errorText + "------------------------------------------------------\n";
		errorText = errorText + "Please correct these issues to continue, \n";
		errorText = errorText + "or call us at 1-877-DESPAIR\n";
	
	if (errorCount > 0) {
		alert(errorText);
		} else {$(skin+'form').submit();}

}


function placeImage(id,s){
var newSource = id.src;
var image = newSource.substring(newSource.lastIndexOf('/')+1,newSource.length);
var design = image.substring(0,image.lastIndexOf('.'));
var parentId = id.parentNode.parentNode.parentNode.parentNode.id;
$(id.parentNode.parentNode.parentNode.parentNode.id+"_image").setAttribute("src",newSource);
$(parentId.replace("_","")).setAttribute("value",design.capitalize());
return hs.close(id.parentNode.parentNode.parentNode.parentNode);
}

function placeImage2(id,s){
var newSource = id.src;
var image = newSource.substring(newSource.lastIndexOf('/')+1,newSource.length);
var design = image.substring(0,image.lastIndexOf('.'));
var parentId = id.parentNode.parentNode.parentNode.parentNode.id;
$(id.parentNode.parentNode.parentNode.parentNode.id+"_image").setAttribute("src",newSource);
$('skin').setAttribute("value",design.capitalize());
return hs.close(id.parentNode.parentNode.parentNode.parentNode);
}


function wlSubmit_list() {
		$('wailingListMemo').update('<ul><li style="width:250px;"><img id="wlStatus" src="http://site.despair.com/images/buttons/THANKS.gif" style="border:0;"></li></ul>');
	};


