function resizeIframe(height)
{
// "+60" is a general rule of thumb to allow for differences in
// IE & and FF height reporting, can be adjusted as required..
document.getElementById('quoteForm').height = parseInt(height)+40;
}
function loadIqs(id){
	window.onresize = show(id);	
	show(id);
}

function show(id)
{
	
	  var link = "http://www.interstatemovingquote.com.au/iqs/quote";
	  //var link = "http://tc923.metawerx.com.au/iqs/quote";
	  var strReturn = "";
	  var strHref = window.location.href;
	  if ( strHref.indexOf("?") > -1 ){
	    strReturn =  strHref.substr(0,strHref.indexOf("?"));
	  }else{
	    strReturn = strHref;
	  }
      if ( strReturn.lastIndexOf("/") > -1 ){
          strReturn =  strReturn.substr(0,strReturn.lastIndexOf("/")) + "/";
        }
	  strReturn = link + "?id=" + id + "&origin=" + strReturn;
	  var pipe = document.getElementById('quoteForm');
	  pipe.src = unescape(strReturn);
}

