// JavaScript Document

function submitUpload()
{
document.getElementById('iForm').submit();

}

function getProdID() {

var cat = get('ctg').value;

switch(cat) 
	{
	
	case "14":
	 		get('id_prd').value = 23;				
	break;		
		
	case "15":
			get('id_prd').value = 24;	
	break;
	}
}

function chkFileUpload() {
	
	var str='email='+oValue('email');
	str=str+'&fname='+oValue('fname');	
	str=str+'&ctgRef2='+oValue('ctgRef2');
	str=str+'&id_prd='+oValue('prodID'); 
	str=str+'&action=chkFile'; 
	oForm = new sack('../../modules/order_process/order_process.php');
	oForm.element = 'msg2'; 
	oForm.runAJAX(str);
	oForm.onCompletion = function() {
		alert('test');
		oForm.runResponse();	
	}
}













