﻿var myelements = new Array()
var mypostions = new Array()
var myypostions = new Array()

function callCustomDDPositioning()
{
	try
	{
		positionEverything();
	}
	catch (ex) 
	{
		//alert("Failed to poistion custom DD");
	}
}
		function eCardHeight() 
			{
				if(document.getElementById && !(document.all)) 
				{
					//h = document.getElementById('ecardpage').contentDocument.body.scrollHeight;
					h = document.getElementById('ecardpage').height;
					document.getElementById('ecardpage').style.height = h;
				}
				else if(document.all) 
				{
					h = document.frames('ecardpage').document.body.scrollHeight;
					document.all.ecardpage.style.height = h;
				}
			}
			function ifSignerHeight() 
			{
				if(document.getElementById && !(document.all)) 
				{
					h = document.getElementById('ifSigner').contentDocument.body.scrollHeight;
					document.getElementById('ifSigner').style.height = h;
				}
				else if(document.all) 
				{
					h = document.frames('ifSigner').document.body.scrollHeight;
					document.all.ifSigner.style.height = h;
				}
			}
			function changeNav(id, colour)
			{
				document.getElementById(id).color = colour;
			}
			function handleResponse(url)
			{
				document.location.href = url;
			}
			
			function createAnswerWindow(profileBody, theTitle, theValue, fontColor, fontFamily)
			{
			var windowContent;
			//this.questionNumber = questionNumber;
			//create a window for getting the users data" & vbCr))
			ansWindow = window.open('','ansWindow','toolbar=no,scrollbars=1,status=no,width=350px,height=500px');
			windowContent = "<html><head><title></title></head>"
			//alert("window content 1 " + windowContent + "\n");
			windowContent = windowContent + "<body bgColor=#ffff66 style='COLOR: " + fontColor + "; FONT-FAMILY: " + fontFamily + "'>"
			//alert("window content 2 " + windowContent + "\n");
			
			
			windowContent = windowContent + profileBody + "<P style='COLOR: " + fontColor + "; FONT-FAMILY: " + fontFamily + "'>" + theTitle
			
			//alert("window content 3 " + windowContent + "\n");
			windowContent = windowContent + "<br><br>" + theValue + "<BR CLEAR=RIGHT></p></body></html>";
			//alert("window content 4 " + windowContent + "\n");
			//alert("title " + theTitle + "\n");
			//alert("the value " + theValue + "\n");
			ansWindow.document.write(windowContent);
			}
	
	        function navMouseOver(objId) {
				var obj = document.getElementById(objId);
				obj.className = "navOverNav";
			}	
			function navMouseOut(objId) {
				var obj = document.getElementById(objId);
				obj.className = "navOutNav";
			}