I have a javascript funcion:-

Code:
function emailXMLDoc(){
	var xmlhttp;
	if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.open("POST","ASP\PostEmail.php",true);
	xmlhttp.setRequestHeader("submitteremail",document.forms[0].email.value,"adminemail","sales@yandina.com","subject","Pending Order");
	var x=document.getElementById("PurchaseOrder");
	var emailText = "PURCHASE ORDER PENDING";
	for (var i=0;i<x.length;i++){
		emailText += "\n"+x.elements[i].value;
             }
	xmlhttp.send(emailText);
};
A BUTTON on the site is intended to dump the form to email, then submit for credit card processing.

Button on HTML is:-

<IMG ONCLICK= "javascript:
emailXMLDoc();CreditCard.submit();"
SRC="graphics/CreditCard.jpg">

It gets as far as the xmlhttp.send and the emailText is correct but I get an error on the xmlhttp.send(emailText);

Error: NS_ERROR_DOM_BAD_URI: Access to restricted URI denied

help?