function getElementWithId(id){
	var obj;
	if(document.getElementById){
		obj = document.getElementById(id);
	}else if(document.all){
		obj = document.all[id];
	}else if(document.layers){
		obj = document.layers[id];
	}
	return obj||null;
}
<script type="text/javascript" src="http://coreg.1x12.net/?act=getoffers&pubid=1964"></script>
<script type="text/javascript">
// These three functions must be included in your page.

// validatePublisherForm() is called before processing offers form.
// This is where you validate data from your own form, and if necessary, returns error.
// If this function returns false, offers won't be processed.
function validatePublisherForm()
{
  if (ERRORS) return false;
  return true;
}

// submitPublisherForm() is called by the LSF scripts after processing the coreg offers sending data to the LSF server.
// This function must be the only way to submit the form.
function submitPublisherForm() { document.form_subscribe.submit(); } 

// This is a security wrapper, used to call the two previous functions.
function LSFaction(action)
{
    switch (action) {
        case 0: if (window.display_LSF_offers) display_LSF_offers(); break;
        case 1: if (window.LSF_submit) LSF_submit(); else if (validatePublisherForm()) submitPublisherForm(); break;
    }
}

</script>
