﻿// JavaScript Document

// ajax
var xmlHttp1;
function createXMLHttpRequest1() {
    if (window.ActiveXObject) {
        xmlHttp1 = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp1 = new XMLHttpRequest();
    }
}

function getID1(sel1,sel2) {
    createXMLHttpRequest1();    
    var url = sel1; 
    var queryString = "cc=1"+sel2;    
    xmlHttp1.open("POST", url, true);
    xmlHttp1.onreadystatechange = checkID1;
    xmlHttp1.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");    
    xmlHttp1.send(queryString);

}
function checkID1() {
    if(xmlHttp1.readyState == 4) {
        if(xmlHttp1.status == 200) {
            checkIDResults1();
        }
    }
}
function checkIDResults1() {
    var feedback = xmlHttp1.responseText;	
	var content = document.getElementById('content');		
	content.innerHTML=feedback; 
		//alert(feedback);
}






