
function popIt(width, height, scrollbars){ 
	if(!width) width = "640";
	if(!height) height = "480";
	if(!scrollbars) scrollbars = 1;
	var windowString = 'width=' + width + ',height=' + height + ',resizable=1,status=0,toolbar=no,scrollbars=' + scrollbars + ',scrolling=auto';
	var popItWindow = window.open('',"popIt", windowString);
	return false;
}

function addToRegistry(){
	var options = new Array();
	var optionString = "";
	var optionName = "";
	var optionValue = "";
	try {
		optionName = document.forms["orderForm"]["Color"].name;
		optionValue = document.forms["orderForm"]["Color"].value;
		options.push(optionName + "=" + optionValue + "&");
	} catch(e) {
		//*** IGNORE
	}
	try {
		optionName = document.forms["orderForm"]["Size"].name;
		optionValue = document.forms["orderForm"]["Size"].value;
		options.push(optionName + "=" + optionValue + "&");
	} catch(e) {
		//*** IGNORE
	}
	
	for (i = 0; i <= options.length - 1; i++){
		optionString += options[i];
	}
	document.forms.addToRegistryForm["product-option-list"].value = optionString;
	popIt(394,400,0);
	document.forms.addToRegistryForm.submit();
}


function addToRegistry2(){
	var options = new Array();
	var optionString = "";
	var optionName = "";
	var optionValue = "";
	try {
		optionName = document.forms["orderForm2"]["Color"].name;
		optionValue = document.forms["orderForm2"]["Color"].value;
		options.push(optionName + "=" + optionValue + "&");
	} catch(e) {
		//*** IGNORE
	}
	try {
		optionName = document.forms["orderForm2"]["Size"].name;
		optionValue = document.forms["orderForm2"]["Size"].value;
		options.push(optionName + "=" + optionValue + "&");
	} catch(e) {
		//*** IGNORE
	}
	
	for (i = 0; i <= options.length - 1; i++){
		optionString += options[i];
	}
	document.forms.addToRegistryForm2["product-option-list"].value = optionString;
	popIt(394,400,0);
	document.forms.addToRegistryForm2.submit();
}


