function callFormatting(sFormatString){
document.execCommand(sFormatString);
}

function changeFormat(heading) {
document.execCommand('FormatBlock', false, heading);
}
function submitform($fire)
{
			formNametitle = $fire;
	formName01 = formNametitle.split(/\n/).join("<br />"); 
	with ( document.all ) { 
		newdirect.innerText = formName01; 
} 
if (document.getElementById('text1')){
cvform.textTransfer1.value = text1.innerHTML;}
if (document.getElementById('text2')){
cvform.textTransfer2.value = text2.innerHTML;}
if (document.getElementById('text3')){
cvform.textTransfer3.value = text3.innerHTML;}
if (document.getElementById('text4')){
cvform.textTransfer4.value = text4.innerHTML;}

if (document.cvform){
	document.cvform.submit();} 
}
function openit() {
newWindow = window.open('preview.php', 'CVPreview', 'scrollbars,width=628,height=630');
}

